佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1857|回复: 4

问大家一个PLSQL的一个error。

[复制链接]
发表于 13-3-2012 06:25 PM | 显示全部楼层 |阅读模式
想问大家这个error:
ORA-01841: (full) year must be between -4713 and +9999, and not be 0 是讲我的PLSQL哪个statement出了问题?
我找来找去还是找不到solution解决。。。是不是date的statement?
回复

使用道具 举报


ADVERTISEMENT

发表于 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


  1. create table tmp_date(dt date);
复制代码
  1. 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



   明白,我看错你为楼主。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 26-4-2024 11:10 AM , Processed in 0.070357 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表