---
title: "ORA-01830: date format picture ends before converting entire input string"
author: "cherryQQ"
date: "2010-08-19T11:43:43Z"
tags: []
categories: ["数据库"]
slug: "ora-01830-date-format-picture-ends-before-converting-entire-input-string"
draft: false
lastmod: "2010-08-19T11:43:43Z"
id: 740948
url: "https://cherryqq.iteye.com/blog/740948"
---

今天在调试存储过程时报这样的错误：校验异常: 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;

 

问题解决