tdSql.execute("create table t0 using st tags('nchar0')")
tdSql.execute("create table t1 using st tags('nchar1')")
tdSql.execute("create table t2 using st tags('nchar2')")
tdSql.execute("create table t3 using st tags('nchar3')")
tdSql.execute("create table t4 using st tags('nchar4')")
tdSql.execute("create table t5 using st tags('nchar5')")
foriinrange(self.num):
tdSql.execute("insert into t0 values(%d, %d)"%(self.ts+i,i))
tdSql.execute("insert into t1 values(%d, %d)"%(self.ts+i,i))
tdSql.execute("insert into t2 values(%d, %d)"%(self.ts+i,i))
tdSql.execute("insert into t3 values(%d, %d)"%(self.ts+i,i))
tdSql.execute("insert into t4 values(%d, %d)"%(self.ts+i,i))
tdSql.execute("insert into t5 values(%d, %d)"%(self.ts+i,i))
sql=''' select * from st where loc = 'nchar0' limit 1 union all select * from st where loc = 'nchar1' limit 1 union all select * from st where loc = 'nchar2' limit 1
union all select * from st where loc = 'nchar3' limit 1 union all select * from st where loc = 'nchar4' limit 1'''
tdSql.query(sql)
tdSql.checkRows(5)
sql=''' select * from st where loc = 'nchar0' limit 1 union all select * from st where loc = 'nchar1' limit 1 union all select * from st where loc = 'nchar2' limit 1
union all select * from st where loc = 'nchar3' limit 1 union all select * from st where loc = 'nchar4' limit 1 union all select * from st where loc = 'nchar5''''