作者kuoll (kuoll)
看板Database
标题[SQL ] 无法汇入sql档案
时间Sat May 9 19:35:22 2015
资料库名称: MySQL
资料库版本: 5.5.33
内容/问题描述:
我想汇入一个含有mysql指令的外部档案 test.sql
若是使用phpMyadmin的import功能可以顺利汇入
但是下指令 source test.sql
会显示错误讯息
#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
'source test.sql' at line 1
请问是我对source的使用方式错误?
还是这版本mysql不支援source指令?
有其它指令可替代吗?
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 220.129.3.250
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Database/M.1431171324.A.10E.html
1F:→ s9714635: 错误讯息很说明了,没有source的指令不是吗? 05/17 11:50