}//找user表//1、执行SQL语句constchar* sql ="select * from student";//或者 char*sql;//mysql_real_query sql语句中可以包含二进制数据//mysql_query sql语句只能是字符串//0返回成功intre =mysql_real_query(&mysql, sql,strlen(sql));//re = mysql_query(&mysql, sql);//Commands out of sync...
mysql_query() cannot be used for statements that contain binary data; you must use mysql_real_query() instead. (Binary data may contain the “\0” character, which mysql_query() interprets as the end of the statement string.) In addition, mysql_real_query() is faster than mysql_query(...
mysql_query与 mysql_real_query区别 2016-01-25 16:39 −mysql_query() cannot be used for statements that contain binary data; you must use mysql_real_query() instead. (Binary data may contain the “\0” char... 玄冬 0 2265 Mysql slow query log ...
mysql_query() cannot be usedforstatements that contain binary data; you must use mysql_real_query() instead. (Binary data may contain the “\0” character, which mysql_query() interpretsasthe end of the statementstring.) In addition, mysql_real_query()isfaster than mysql_query() because ...