我的查詢似乎是確定的:就我所知有云:無法解決MySQL錯誤#1064
CREATE TABLE PORTAL_NOTES (
id numeric NOT NULL,
school_id numeric,
syear numeric(4,0),
title character varying(255),
content character varying(5000),
sort_order numeric,
published_user numeric,
published_date timestamp(0),
start_date date,
end_date date,
published_profiles character varying(255)
);
但我得到這個錯誤:
#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 '(1) , start_date date, end_date date, published_profiles characte' at line 9
誰能幫我調試問題在這裏?
'timestamp'不需要長度。 –
適合我! http://sqlfiddle.com/#!9/161c6 –
就在我頭頂,不應該只是時間戳,而不是時間戳(0)? – Endareth