sql> create table aa(a date);
table created.
sql> alter session set nls_date_format='yyyy-mm-dd';
session altered.
sql> insert into aa select date'-9999-01-01' from dual;
insert into aa select date'-9999-01-01' from dual
*
error at line 1:
ora-01841: (full) year must be between -4713 and 9999, and not be 0
sql> insert into aa select date'0000-01-01' from dual;
1 row created.
sql> select * from aa;
a
----------
0000-01-01
sql> insert into aa select date'-0001-01-01' from dual;
1 row created.
sql> select * from aa;
a
----------
0000-01-01
0001-01-01
sql> insert into aa select date'-0000-01-01' from dual;
1 row created.
sql> select * from aa;
a
----------
0000-01-01
0001-01-01
0000-01-01
sql> insert into aa select date'-1000-01-01' from dual;
1 row created.
sql> select * from aa;
a
----------
0000-01-01
0001-01-01
0000-01-01
1000-01-01
-----------
platform information:
oracle9i enterprise edition release 9.2.0.4.0 - 64bit production
pl/sql release 9.2.0.4.0 - production
core 9.2.0.3.0 production
tns for solaris: version 9.2.0.4.0 - production
nlsrtl version 9.2.0.4.0 - production
阅读(1678) | 评论(0) | 转发(0) |