2012-04-08 144 views
1

我得到當我執行以下語句錯誤與MySQL

INSERT INTO upcoming_matches(
    Id, Date, me_date, Match, team1, team2, 
    Timing, Status, series_id, 
    match_place,series_mtch_type, match_live,match_result, MINI_LINK, 
    PHOTOS_URL, scorecard_ID) 
VALUES(
    764, '2012/03/11', '2012/03/11', 'Bangla vs Pak', '2', '6', 
    '08:00 GMT | 14:00 local 13:30 IST', 1, 171, 
    'Shere Bangla National Stadium, Mirpur', 'ODI', 1, '', '1483', 
    'http://www.cricandcric.com/photo-gallery/', 3258) 
GO 

[Error] Script lines: 1-5 -------------------------- 
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 'Match, team1, team2, Timing, Status, series_id, match_place, 
series_mtch_type, ' at line 1 

Warnings: ---> 
    W (1): 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 'Match, team1, team2, Timing, Status, series_id, match_place, 
series_mtch_type, ' at line 1 
      <--- 

任何一個可以請幫我這個

+0

[由於在MySQL中使用保留字作爲表或列名稱導致的語法錯誤]的可能重複(http://stackoverflow.com/questions/23446377/syntax-error-due-to-using-a-reserved -word-as-a-table-or-column-name-in-mysql) – 2014-05-06 09:56:10

回答

1

你不必與在MySQL中GO關鍵字關閉語句,你必須CLOS e用分號表示;

您還需要反編譯任何可能包含保留的keywork或大寫字段的字段名稱。

+0

「capitalized field」--- nope – zerkms 2012-04-08 08:49:21