现象:执行创建数据库的sql在数据库名之前加了一个回车之后,数据库创建数据库名是加了回车的名字
SHOW CREATE DATABASE `
test0`;
实际数据库名:@000d@000atest0
错误写法
SHOW TABLES FROM '
test0'
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 ''
test0'' at line 1
应该这样写
SHOW TABLES FROM `
test0`
来源:CSDN
作者:wqq1027
链接:https://blog.csdn.net/wqq1027/article/details/104610598