mysql删除数据表遇到错误#1064(42000)

在linux mysql下执行drop table table_name命令时遇到

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

原因:与mysq保留关键字冲突
解决办法:使用反引号将表名扩起来,
这里写图片描述
其他语句这一遇到这个问题可通用。

猜你喜欢

转载自blog.csdn.net/ruffaim/article/details/80224310