ORA-01830: date format picture ends before converting entire input string

今天在调试存储过程时报这样的错误:校验异常: ORA-01830: date format picture ends before converting entire input string

 

 

经过查找发现,
SELECT to_date('2010-08-19 18:05:09','yyyy-mm-dd') FROM dual;

 

这样的格式是不允许的,经过修改为:


SELECT to_date('2010-08-19','yyyy-mm-dd') FROM dual;

 

问题解决

 

 

你可能感兴趣的:(convert)