blob: 9ea1684494a7c9137ef066d8d648573bccccd8d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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;
|