res=taos_query(taos,"create table meters(ts timestamp, f float, n int, b binary(20), c nchar(20)) tags(area int, city binary(20), dist nchar(20));");
charcommand[1024]={0};
sprintf(command,"%s","create table meters(ts timestamp, f float, n int, bin1 binary(20), c nchar(20), bin2 binary(20)) tags(area int, city binary(20), dist nchar(20), street binary(20));");
res=taos_query(taos,command);
if((res)&&(0==taos_errno(res))){
okPrint("%s created\n","meters");
}else{
errorPrint("%s() LN%d: %s\n",
__func__,__LINE__,taos_errstr(res));
taos_free_result(res);
exit(1);
}
taos_free_result(res);
charcommand[1024]={0};
for(int64_ti=0;i<g_num_of_tb;i++){
// sprintf(command, "create table t%"PRId64" using meters tags(%"PRId64", '%s', '%s');",
// i, i, (i%2)?"beijing":"shanghai", (i%2)?"朝阳区":"黄浦区");
sprintf(command,"create table t%"PRId64" using meters tags(%"PRId64", '%s', '%s');",