SQL Mysql table 中的语法错误
SQL syntax error in Mysql table
我正在尝试运行查询
select * from Order;
我在 sql fiddle 中收到以下语法错误。
无法找出正确的语法。
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
Order
是一个 MySQL reserved word。更改您的查询以使用反引号:
select * from `Order`;
Order 是 mysql 的保留关键字,参考这个 link;
只需将您的 table 名称从 Order 更改为 orders。
再见!
我正在尝试运行查询
select * from Order;
我在 sql fiddle 中收到以下语法错误。 无法找出正确的语法。
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
Order
是一个 MySQL reserved word。更改您的查询以使用反引号:
select * from `Order`;
Order 是 mysql 的保留关键字,参考这个 link;
只需将您的 table 名称从 Order 更改为 orders。 再见!