标签:query
[c/c++操作MySQL] mysql_query()的delete一直返回0
本人用c++去执行删除(delete)数据的语句: int ret = 0; // sql_delete_user = "delete from userinfo where username="username""; if (!(ret = mysql_query(mysql, sql_delete_user))){ cout << ……
05-03 立刻查看
[c/c++MySQL] mysql_query() 一直返回1,但命令行执行正确怎么解决
# 在命令行select没有问题: mysql> select sc.uid from (select uid from stuinfo where sclass = "class3") sc w here sc.uid = "52002" -> ; +--+ | uid | +--+ | 52002 | +--+ 1 row in ……
05-01 立刻查看
奇怪!日期类型与任意字符串比较都能成功执行.
query datetime table schema: create table if not exists `RIV_INBOUND_NOTICE_H`( `INH_ID` int(10) primary key auto_increment comment ""入库通知单头ID"", `INH_STATUS` smallint no……
04-27 立刻查看