PDA

View Full Version : mysql error 1064


Arsenik
04-08-2003, 09:16 PM
Where can i find a list of error code and what they mean?

I integrated a script with vb and used vb's DB class.

I want to LOCK a table while i update records in it.

I tried this:...
$DB_site->query("LOCK TABLES mytable_$table[tablenumber]");
...
And i get this error message:
...
Invalid SQL: LOCK TABLES mytable_1
mysql error: You have an error in your SQL syntax near '' at line 1
mysql error number: 1064
...
What is the problem? Cant we LOCK tables using vb's DB class?

filburt1
04-08-2003, 10:48 PM
You have to use plurality; i.e., LOCK TABLES mytable_whatever.

Arsenik
04-09-2003, 12:44 AM
Corrected and still the same error. :cry: