ORA-01830:在转换toad oracle中的整个输入字符串之前,日期格式图片结束 [英] ORA-01830: date format picture ends before converting entire input string in toad oracle

查看:201
本文介绍了ORA-01830:在转换toad oracle中的整个输入字符串之前,日期格式图片结束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

INSERT INTO USERTASK (USERTASKKEY,USERID,TASKKEY,TASKDATE,CREATEDATE,CREATEUSERID) VALUES (USERTASKSEQUENCE.NEXTVAL,'admin45','1', TO_DATE('2015-06-25 15:53','yyyy/mm/dd'), TO_DATE('2015-06-01 15:53:22','yyyy/mm/dd'),'admin')
Error at line 1
ORA-01830: date format picture ends before converting entire input string

我从我的程序的insert语句。

this is the code i get from the insert statement of my program. and i copy and paste it into TOAD and it throw me this error.

推荐答案

将时间组件添加到日期掩码:

Add the time component to the date mask:

TO_DATE('2015-06-01 15:53:22','YYYY-MM-DD HH24:MI:SS')

这篇关于ORA-01830:在转换toad oracle中的整个输入字符串之前,日期格式图片结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆