adding test scripts
[csql.git] / test / tools / csql / csql101.sql
blob6467c400c01426aa41c11b4b70917a382d6d44e6
1 echo create table t1(f1 int);
2 create table t1(f1 int);
3 echo insert into t1 values(10);
4 insert into t1 values(10);
5 echo insert into t1 values(100a);
6 insert into t1 values(100a);
7 echo update t1 set f1=10a;
8 update t1 set f1=10a;
9 echo update t1 set f1=100a;
10 update t1 set f1=100a;
11 echo update t1 f1=100 where f1=10a;
12 update t1 f1=100 where f1=10a;
13 echo select * from t1;
14 select * from t1;
15 echo select * from t1 where f1=10a;
16 select * from t1 where f1=10a;
17 echo drop table t1;
18 drop table t1;
19 echo create table t1(f1 tinyint);
20 create table t1(f1 tinyint);
21 echo insert into t1 values(10);
22 insert into t1 values(10);
23 echo insert into t1 values(100a);
24 insert into t1 values(100a);
25 echo update t1 set f1=10a;
26 update t1 set f1=10a;
27 echo update t1 set f1=100a;
28 update t1 set f1=100a;
29 echo update t1 f1=100 where f1=10a;
30 update t1 f1=100 where f1=10a;
31 echo select * from t1;
32 select * from t1;
33 echo select * from t1 where f1=10a;
34 select * from t1 where f1=10a;
35 echo drop table t1;
36 drop table t1;
37 echo create table t1(f1 smallint);
38 create table t1(f1 smallint);
39 echo insert into t1 values(10);
40 insert into t1 values(10);
41 echo insert into t1 values(100a);
42 insert into t1 values(100a);
43 echo update t1 set f1=10a;
44 update t1 set f1=10a;
45 echo update t1 set f1=100a;
46 update t1 set f1=100a;
47 echo update t1 f1=100 where f1=10a;
48 update t1 f1=100 where f1=10a;
49 echo select * from t1;
50 select * from t1;
51 echo select * from t1 where f1=10a;
52 select * from t1 where f1=10a;
53 echo drop table t1;
54 drop table t1;
55 echo create table t1(f1 bigint);
56 create table t1(f1 bigint);
57 echo insert into t1 values(10);
58 insert into t1 values(10);
59 echo insert into t1 values(100a);
60 insert into t1 values(100a);
61 echo update t1 set f1=10a;
62 update t1 set f1=10a;
63 echo update t1 set f1=100a;
64 update t1 set f1=100a;
65 echo update t1 f1=100 where f1=10a;
66 update t1 f1=100 where f1=10a;
67 echo select * from t1;
68 select * from t1;
69 echo select * from t1 where f1=10a;
70 select * from t1 where f1=10a;
71 echo drop table t1;
72 drop table t1;
73 echo create table t1(f1 real);
74 create table t1(f1 real);
75 echo insert into t1 values(10);
76 insert into t1 values(10);
77 echo insert into t1 values(100a);
78 insert into t1 values(100a);
79 echo update t1 set f1=10a;
80 update t1 set f1=10a;
81 echo update t1 set f1=100a;
82 update t1 set f1=100a;
83 echo update t1 f1=100 where f1=10a;
84 update t1 f1=100 where f1=10a;
85 echo select * from t1;
86 select * from t1;
87 echo select * from t1 where f1=10a;
88 select * from t1 where f1=10a;
89 echo drop table t1;
90 drop table t1;
91 echo create table t1(f1 float);
92 create table t1(f1 float);
93 echo insert into t1 values(10);
94 insert into t1 values(10);
95 echo insert into t1 values(100a);
96 insert into t1 values(100a);
97 echo update t1 set f1=10a;
98 update t1 set f1=10a;
99 echo update t1 set f1=100a;
100 update t1 set f1=100a;
101 echo update t1 f1=100 where f1=10a;
102 update t1 f1=100 where f1=10a;
103 echo select * from t1;
104 select * from t1;
105 echo select * from t1 where f1=10a;
106 select * from t1 where f1=10a;
107 echo drop table t1;
108 drop table t1;