我想獲得從另一個數據庫行,所以我創建的查詢: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
如何解決這個問題?
感謝您的回覆