久久青草精品A片狠狠,日韩欧美视频一区二区,亚洲国码AV日韩,国产精品黄在

幫助中心 >  技術(shù)知識庫 >  云服務(wù)器 >  服務(wù)器教程 >  [Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL s

[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL s

2016-12-02 17:07:45 9958

[Err] 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 at line 3

MySQL 5.6,Navicat For MySQL 10.0.10 中執(zhí)行SQL語句時提示此錯誤,在CMD中執(zhí)行SQL文件中的語句時提示以下錯誤:

D:UsersAven>mysql -uroot -p < F:PublishDatashare_update.sql
Warning: Using a password on the command line interface can be insecure.
ERROR 1064 (42000) at line 4: You have an error in your SQL syntax; check the ma
nual that corresponds to your MySQL server version for the right syntax to use n
ear 'ALTER聽TABLE聽mcu聽CHANGE聽`LOCAL_ID`聽`LOCAL_ID`聽VARchar(50)聽'
at line 1

解決方案:

發(fā)現(xiàn)解決該問題的關(guān)鍵,是錯誤提示中的空格都是“聽”,這讓我想到是文件的編碼問題,然后做文件編碼的轉(zhuǎn)換。 
推薦使用Notepad++,編碼轉(zhuǎn)換非常方便,如圖: 
這里寫圖片描述 
轉(zhuǎn)換為UTF-8格式,問題依舊,再轉(zhuǎn)為ANSI格式試試: 
這里寫圖片描述

這里寫圖片描述

把?都替換為空格,保存,再執(zhí)行,一切OK了。


提交成功!非常感謝您的反饋,我們會繼續(xù)努力做到更好!

這條文檔是否有幫助解決問題?

非常抱歉未能幫助到您。為了給您提供更好的服務(wù),我們很需要您進(jìn)一步的反饋信息:

在文檔使用中是否遇到以下問題: