adding test scripts
[csql.git] / test / tools / csql / comp1.sql
blob502c6e15a245f92022f82c960429cbe6361cae9e
1 CREATE TABLE t1 (f1 INT ,f2 INT ,f3 INT, primary key(f1,f2));
2 INSERT INTO t1 VALUES(1,1,1);
3 INSERT INTO t1 VALUES(2,1,2);
4 INSERT INTO t1 VALUES(3,1,3);
5 INSERT INTO t1 VALUES(1,1,3);
6 INSERT INTO t1 VALUES(5,2,5);
7 INSERT INTO t1 VALUES(10,2,10);
8 INSERT INTO t1 VALUES(100,3,100);
9 echo select count(f1) from t1;
10 select count(f1) from t1;
11 echo select * from t1 where f1=1 and f2=1;
12 select * from t1 where f1=1 and f2=1;
13 echo select * from t1 where f1=5 and f2=1;
14 select * from t1 where f1=5 and f2=1;
15 echo select * from t1 where f1=5;
16 select * from t1 where f1=5;
17 echo select * from t1 where f1=7;
18 select * from t1 where f1=7;
19 echo select * from t1 where f1=10 and f2=2 and f3=10;
20 select * from t1 where f1=10 and f2=2 and f3=10;
21 echo select * from t1 where f1=10 and f2=6 and f3=10;
22 select * from t1 where f1=10 and f2=6 and f3=10;
23 echo test over