我在SQL編程新tablle插入日期,我創建了一個表,其中我想插入AA日期像不能在我的Oracle SQL
create table person (
PANr integer not null,
name Varchar(10),
HNr integer not null,
stuff_date date,
constraint P_NR primary key (PANr)
);
INSERT INTO Personen值( '4711', 'Andreas''15', '1958年10月31日');
表工程的創建,但插入命令給出了這樣的錯誤:
SQL Error: ORA-01843: not a valid month
01843. 00000 - "not a valid month"
任何想法有什麼錯在這裏? 在此先感謝
嘗試插入日期作爲默認日期格式「DD-MON-YY」格式即(31-10-1958) – 2013-04-20 13:50:38
不要使用字符串,請使用日期文字:'date'1958-10-31''。 http://xkcd.com/1179/ – 2013-04-20 19:24:20