我正在使用MySQL Workbench,我有一系列從我的電腦上存儲的.sql文件。我想運行從查詢選項卡這些文件,但每次我使用這個命令:如何從查詢選項卡運行.sql文件?
source '/Users/[username]/Documents/company/department.sql';
我得到一個錯誤1064,它說"Error Code: 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 'mysql> source '/Users/[username]/Documents/company/department.sql' at line 1 "
誰能告訴我,我在做什麼錯誤?
爲什麼不從MySQL Workbench打開department.sql而不是採購? –