adding test scripts
[csql.git] / test / tools / csql / deletefrom_parent_wthout_child.sql
blobb2c3ba170bbceca187b3f32ca27c016cfd2eee39
1 CREATE TABLE t1(f1 INT,f2 INT, PRIMARY KEY(f1));
2 INSERT INTO t1 VALUES(3,10);
3 INSERT INTO t1 VALUES(1,20);
4 INSERT INTO t1 VALUES(2,20);
5 CREATE TABLE t2(f1 INT,f2 INT,FOREIGN KEY(f1) REFERENCES t1(f1));
6 INSERT INTO t2 VALUES(1,10);
7 INSERT INTO t2 VALUES(2,20);
8 INSERT INTO t2 VALUES(2,10);
9 INSERT INTO t2 VALUES(1,20);
10 DELETE FROM t1 WHERE f1=1;