我對SQL/MYSQL非常陌生,我遇到了一個問題......我創建了一個表格等數據庫,我可以搜索它沒有問題......但是當我在"WHERE"
聲明中添加時,我獲得error code 1064
。任何幫助,將不勝感激。mysql error code 1064 where statement
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 'WHERE salary =>60000' at line 1
我的查詢是這樣的......
SELECT
salary
FROM
instructor;
WHERE
salary => 60000
如果我不跑了"WHERE"
線只是正常的查詢,但它我得到上面的錯誤。另外,只需注意,單詞"WHERE"
是以紅色表示的,但沒有其他的字眼。
感謝您的任何幫助! 另外,我在Mac
將分號移至行尾。 – genisage 2015-01-20 23:40:54
我是個白癡......而你是上帝! – beau8008 2015-01-20 23:42:41