I have a table 'a' and 'b'.
If I try to delete the record from 'a', not able to do it. Because, 'b' table is referencing the 'a' table.
create table a(id serial primary key,name varchar(10));
create table b(id serial,pid integer references a,comment varchar(100));
What is the way to delete a particular record from 'a' table?
If I try to delete the record from 'a', not able to do it. Because, 'b' table is referencing the 'a' table.
create table a(id serial primary key,name varchar(10));
create table b(id serial,pid integer references a,comment varchar(100));
What is the way to delete a particular record from 'a' table?
Comment