There was an error pouring into the database to import the. sql file today. Look at the error code:
You have a error in your SQL syntax; Check the manual-corresponds to your MySQL server version for the right syntax-use-near ' order ' on line 1
First look at the table on the order table regardless of any operation to delete the modified query is a direct error. Deleting a table is also. But it's OK to check the other tables for any operation. Finally found. It turns out that this error was the Order keyword conflict in the table name order and the MySQL statement
All you have to do is change the table name. The operation is in progress. If you don't want to change the name, you can add "order" or select COUNT (*) from ' order ' on both sides of the order at the time of operation.
In addition to the explanation under another function MySQL in the oneself used to hey
From_unixtime
Effect: Displays the time in MySQL as an int (11) in the "YYYY-MM-DD" format.
No nonsense look at the example:
Let's not look at the results directly from the SQL statement. is not an instant to understand the use of from_unixtime.
MySQL Error summary and from_unixtime usage