标签:返回值
[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++去执行删除(delete)数据的语句: int ret = 0; // sql_delete_user = "delete from userinfo where username="username""; if (!(ret = mysql_query(mysql, sql_delete_user))){ cout << ……