国产欧美日韩第一页|日本一二三不卡视频|在线精品小视频,亚洲第一免费播放区,metcn人体亚洲一区,亚洲精品午夜视频

幫助中心 >  技術(shù)知識(shí)庫(kù) >  云服務(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 10752

[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語(yǔ)句時(shí)提示此錯(cuò)誤,在CMD中執(zhí)行SQL文件中的語(yǔ)句時(shí)提示以下錯(cuò)誤:

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聽(tīng)TABLE聽(tīng)mcu聽(tīng)CHANGE聽(tīng)`LOCAL_ID`聽(tīng)`LOCAL_ID`聽(tīng)VARchar(50)聽(tīng)'
at line 1

解決方案:

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

這里寫圖片描述

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


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

這條文檔是否有幫助解決問(wèn)題?

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

在文檔使用中是否遇到以下問(wèn)題: