免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1423 | 回复: 2
打印 上一主题 下一主题

插入语句时出现的时间 问题。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-06-14 15:20 |只看该作者 |倒序浏览
我在用insert语句插入一条记录时,出现了ORA-01855 AM/A.M. or PM/P.M. required的错误,

而且我在网上找到了错误的原因
Cause:  A date specification contained a meridian indicator format code but a valid meridian indicator was not specified. If a meridian indicator code, A.M./P.M. or AM/PM, is included in a date format, the date must include a valid meridian indicator.  

Action:  Specify the meridian indicator in the correct format, A.M./AM or P.M./PM.  


我的insert 语句 是
INSERT INTO KEYWORD ( KEYWORDNAME, EXPIREDDATE, EXPIREDRETURN, ATTACHMENT) VALUES ('LOCKVGSMZ', TO_Date('10/26/2003 11:08:20 PM', 'MM/DD/YYYY HH:MI:SS AM'), 'Sorry, the keyword has expired.', NULL)
我看to_date函数没有错啊。
请高手帮我一下啦。

论坛徽章:
0
2 [报告]
发表于 2004-06-15 09:34 |只看该作者

插入语句时出现的时间 问题。

没有高手能指点二下吗。

论坛徽章:
0
3 [报告]
发表于 2004-06-15 09:38 |只看该作者

插入语句时出现的时间 问题。

换成 hh24的模式
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP