db2 数据库
db2语句sprintf(sql,“select * from t_msg_para where count < %s”,s_count);
count 为字符串型,记录的是次数,现在想 把count转为integer 型后进行比较 这样可以吧count拓展成多位数字的字符串(现在count 设定的是单位数字如3,5什么的)。请问大神如何不改变数据表格格式的情况下,把count转为数字,然后与数字作比较即 sprintf(sql,“select * from t_msg_para where ?(count )< %d”,num);,多谢了!