create table A(a1 varchar(10))
create table B(b1 varchar(10), a1 varchar(10) not null)
alter table A add primary key(a1)
alter table B ADD CONSTRAINT "a_fkey" foreign key (a1) references A (a1) on delete cascade
insert into A(A1) values('a1')
INSERT INTO B (b1, A1) VALUES ('b2','a1')
delete from A
I don't see corresponding rows deleted from Table B.
Is there anything wrong i am doing??.. same set of statements is working fine with Postgres.
create table B(b1 varchar(10), a1 varchar(10) not null)
alter table A add primary key(a1)
alter table B ADD CONSTRAINT "a_fkey" foreign key (a1) references A (a1) on delete cascade
insert into A(A1) values('a1')
INSERT INTO B (b1, A1) VALUES ('b2','a1')
delete from A
I don't see corresponding rows deleted from Table B.
Is there anything wrong i am doing??.. same set of statements is working fine with Postgres.
Comment