Home > database >  C run the SQL statement failure, but in MySQL Workbench running success
C run the SQL statement failure, but in MySQL Workbench running success

Time:09-17

Encounter a problem that is very strange,
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);
}
  • Related