MySQL: There is even fake data in the table, but there is a sync error.

Asked 2 years ago, Updated 2 years ago, 35 views

Hello. After completing the table and data migration using javascriptorm, I entered the mysql shell and did desc <table name> because the query did not work. But

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order' at line 1

The grammar error appears as above. Of course, if you do show tables;, the table appears in the list. Have you experienced this before? If you have any information that you want to share, please leave a comment :)

sql mysql

2022-09-22 17:55

1 Answers

desc `order`;

select * from `order`;

If you wrap it with a bag-tick (`), you can use a reserved word.


2022-09-22 17:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.