ERROR 1060 (42S21): Column 'content' specified twice
SQL 語句中同一欄位名稱出現兩次,常見於:
INSERT INTO t (a, b, a) VALUES (1,2,3) — 重複欄位SELECT a, b, a FROM t — 重複選取(通常只是警告)CREATE TABLE t (a INT, a INT) — 重複定義INSERT 括號內、SELECT 列表、CREATE TABLE 定義)t1.content, t2.content AS content2-- 錯誤
INSERT INTO articles (title, content, content) VALUES ('標題', '內容', '內容');
-- 正確
INSERT INTO articles (title, content) VALUES ('標題', '內容');