adding test scripts
[csql.git] / test / sql / Predicate / varchar_logical_del.sql
blob2c880373855369733bfe20a50816cb02c8ecacdd
1 echo Create table t1(f1 varchar(10), f2 char(10), f3 varchar(10), f4 int);
2 Create table t1(f1 varchar(10), f2 char(10), f3 varchar(10), f4 int);
3 Insert into t1 values('CSQL1', 'LAKS1','BBSR1',10);
4 Insert into t1 values('CSQL1', 'LAKS1','BBSR2',20);
5 Insert into t1 values('CSQL1', 'LAKS2','BBSR3',30);
6 Insert into t1 values('CSQL1', 'LAKS2','BBSR4',40);
7 Insert into t1 values('CSQL2', 'LAKS3','BBSR5',50);
8 Insert into t1 values('CSQL2', 'LAKS3','BBSR6',60);
9 Insert into t1 values('CSQL2', 'LAKS4','BBSR7',70);
10 Insert into t1 values('CSQL2', 'LAKS4','BBSR8',80);
11 echo select * from t1;
12 select * from t1;
13 echo delete from t1 where f3='BBSR1' and f1='CSQL1';
14 delete from t1 where f3='BBSR1' and f1='CSQL1';
15 echo select * from t1;
16 select * from t1;
17 echo delete from t1 where not(f3='BBSR1') and f1='CSQL2';
18 delete from t1 where not(f3='BBSR1') and f1='CSQL2';
19 echo select * from t1;
20 select * from t1;
21 echo delete from t1 where f1='CSQL1' and f3 like 'B_S%' and f4<=30;
22 delete from t1 where f1='CSQL1' and f3 like 'B_S%' and f4<=30;
23 echo select * from t1;
24 select * from t1;