1. 程式人生 > >check the manual that corresponds to your MySQL server version for the right syntax的解決方法

check the manual that corresponds to your MySQL server version for the right syntax的解決方法

  我在匯入一組資料後,進行查詢相關操作總是遇到check the manual that corresponds to your MySQL server version for the right syntax的提示。明明寫的格式也是對的但就是總報這個提示,百思不得其解。

  比如我進行查詢tdb_goods表中超極本的價格:

 select goods_price from tdb_goods where goods_cate = '超極本';

如下圖:


其實寫的是相同的,但一個成功一個不成功,成功那個是“超極本”這個欄位我從資料庫中對應的表直接拷貝過來的。


我覺得出現這個問題,可能是匯入人家的資料,欄位命名有一些問題,像空格之類什麼的影響了查詢

  所以少年,你對你寫的SQL有信心的話,再倒入別人的資料中卻找不到或報錯可以嘗試去資料庫直接拷貝人家對應的欄位也許就解決了。