gpt4 book ai didi

mysql - 无法在mysql中选择表

转载 作者:太空宇宙 更新时间:2023-11-03 10:48:02 25 4
gpt4 key购买 nike

这是 mysql 表:

+---------------------+

| Tables_in_myproject |

+---------------------+

| reds |

| zxy |

| abcd |

| release |

+---------------------+

一组 4 行(0.46 秒)

当我尝试选择或显示发布表时,它会抛出以下错误:

mysql> select * from release;

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 'release' at line 1

我做错了什么?我可以选择所有其他表。

最佳答案

releasereserved keyword in MySQL需要用反引号转义。

select * from `release`;

关于mysql - 无法在mysql中选择表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28496172/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com