snprintf(command,BUFFER_SIZE,"INSERT INTO %s.%s%050d using %s.meters tags (\"%050d\") VALUES(now, %f);",winfo->db_name,winfo->tb_prefix,i,winfo->db_name,i,x);
}else{
j=i%10;
}
if(j%2==0){
snprintf(command,BUFFER_SIZE,"create table if not exists %s.%s%d using %s.meters tags (%d,\"%s\");",winfo->db_name,winfo->tb_prefix,i,winfo->db_name,j,"shanghai");
}else{
snprintf(command,BUFFER_SIZE,"create table if not exists %s.%s%d using %s.meters tags (%d,\"%s\");",winfo->db_name,winfo->tb_prefix,i,winfo->db_name,j,"beijing");