我想获得从另一个数据库行,所以我创建的查询:MySQL的SELECT记录(数据库名称包含 ' - ')
SELECT * FROM database-test.users
MySQL的结果是错误:
Database_Exception [ 42000 ]: SQLSTATE[42000]: Syntax error or access violation: 1064 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 '-test.users' at line 1
如何解决这个问题?
感谢您的回复