sql - MySQL query error with a table named "order" -


I have this problem but I have just got the solution, so I will write it here if anyone stays in it. This is my mysql query:

mysql_query ("Choose ID from order order by id DESC LIMIT 1")

and I got the error

There is an error in your SQL syntax;

The order related to your messaging server version for the right syntax to use the order order 'ORDER ID DESC limit 1' on

Order The word is reserved You must use the command to join the back-tiex.

/ Strong>

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -