connection node_2; connection node_1; connection node_1; CREATE TABLE t1 ( id int primary key ); CREATE TABLE t2 ( id int primary key , f_id int DEFAULT NULL, FOREIGN KEY(f_id) REFERENCES t1 (id) ); insert into t1 select 1; #Running 200 insert in t2 table select count(*) from t2; count(*) 200 delete from t2; delete from t1; drop table t2,t1;