A SQL statement execution delete function, in mysql workbench will run successfully, but when using c + + code running errors,
More surprisingly, next to the statements of another delete statements can also be run successfully,
In summary:
The int function {
Int err1=mysql_query (deleteSQL1);//(c + + code returns failure err1=1, MYSQL Workbench running success)
Int err2=mysql_query (deleteSQL2);//(c + + code returns success err2=0, MYSQL Workbench running success);
}