我的查询似乎是确定的:就我所知有云:无法解决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