查看: 1857|回复: 4
|
问大家一个PLSQL的一个error。
[复制链接]
|
|
想问大家这个error:
ORA-01841: (full) year must be between -4713 and +9999, and not be 0 是讲我的PLSQL哪个statement出了问题?
我找来找去还是找不到solution解决。。。是不是date的statement? |
|
|
|
|
|
|
|
发表于 14-3-2012 01:05 PM
|
显示全部楼层
本帖最后由 nsda 于 14-3-2012 01:07 PM 编辑
想问大家这个error:
ORA-01841: (full) year must be between -4713 and +9999, and not be 0 是讲我的PL ...
Danteoddjob 发表于 13-3-2012 06:25 PM
- create table tmp_date(dt date);
复制代码- insert into tmp_date values(to_date('1111aaaa', 'DDMMYYYY'));
复制代码
Error report:
SQL Error: ORA-01841: (full) year must be between -4713 and +9999, and not be 0
01841. 00000 - "(full) year must be between -4713 and +9999, and not be 0"
*Cause: Illegal year entered
*Action: Input year in the specified range
INSERT, UPDATE, etc..時, Date Input要match跟Date format |
|
|
|
|
|
|
|
发表于 11-4-2012 03:34 PM
|
显示全部楼层
Error report:
SQL Error: ORA-01841: (full) year must be between -4713 and +9999, and not ...
nsda 发表于 14-3-2012 01:05 PM
to_date('1111aaaa', 'DDMMYYYY')
你的year invalid, 做什么 你的year 是aaaa? |
|
|
|
|
|
|
|
发表于 11-4-2012 05:47 PM
|
显示全部楼层
to_date('1111aaaa', 'DDMMYYYY')
你的year invalid, 做什么 你的year 是aaaa?
winmxaa 发表于 11-4-2012 03:34 PM
我是在simulate error message给LZ看... |
|
|
|
|
|
|
|
发表于 11-4-2012 06:03 PM
|
显示全部楼层
我是在simulate error message给LZ看...
nsda 发表于 11-4-2012 05:47 PM
明白,我看错你为楼主。 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|