adding test scripts
[csql.git] / test / tools / csql / foreign1.sql
blob1d36fcbfd715a7c2559c03377e10688bc11942d9
1 echo CREATE TABLE t1(f1 int,f2 int,f3 int,primary key(f1,f2));
2 CREATE TABLE t1(f1 int,f2 int,f3 int,primary key(f1,f2));
3 echo CREATE TABLE t2(f1 int,f2 int,f3 int,foreign key(f1,f3) references t1(f1,f2));
4 CREATE TABLE t2(f1 int,f2 int,f3 int,foreign key(f1,f3) references t1(f1,f2));
5 echo INSERT INTO t1 VALUES(1,10,100);
6 INSERT INTO t1 VALUES(1,10,100);
7 echo INSERT INTO t2 VALUES(1,10,100);
8 INSERT INTO t2 VALUES(1,10,100);
9 echo INSERT INTO t2 VALUES(2,20,10);
10 INSERT INTO t2 VALUES(2,20,10);