oracle学习笔记【 ORA-01861: literal does not match format string(字符串格式不匹配)】
2012-06-20 16:19
701 查看
Oracle 异常 ORA-01861: literal does not match format string(字符串格式不匹配) 如果直接按照字符串方式,或者,直接使用'2007-12-28
10:07:24',没有指定日期格式,就会报错:ORA-01861: 文字与格式字符串不匹配
必须指定日期格式
正确做法:
SELECT D261 as ename,GENTIME,D267 FROM UNITE.UPR_C2_NE_VENDOR T
where T.GENTIME<to_date('2009-03-18 17:03:00' , 'yyyy-mm-dd hh24:mi:ss')
10:07:24',没有指定日期格式,就会报错:ORA-01861: 文字与格式字符串不匹配
必须指定日期格式
正确做法:
SELECT D261 as ename,GENTIME,D267 FROM UNITE.UPR_C2_NE_VENDOR T
where T.GENTIME<to_date('2009-03-18 17:03:00' , 'yyyy-mm-dd hh24:mi:ss')
相关文章推荐
- Oracle 异常 ORA-01861: literal does not match format string(字符串格式不匹配)
- Oracle异常ORA-01861:literal does not match format string(字符串格式不匹配)
- Oracle 异常 ORA-01861: literal does not match format string(字符串格式不匹配)
- Oracle 异常 ORA-01861: literal does not match format string(字符串格式不匹配)
- Oracle 异常 ORA-01861: literal does not match format string(字符串格式不匹配)
- Oracle 异常 ORA-01861: literal does not match format string(字符串格式不匹配)
- Oracle 异常 ORA-01861: literal does not match format string(字符串格式不匹配)
- 解决:Oracle 异常 ORA-01861: literal does not match format string(字符串格式不匹配)
- 解决Oracle异常ORA-01861:literal does not match format string(字符串格式不匹配)
- ORA-01861: literal does not match format string
- Oracle 异常 ORA-01861: literal does not match format string
- 解决ORA-01861 literal does not match format string
- ORA-01861: literal does not match format string
- 解决sqoop 导入oracle表时 --split-by参数为日期类型时的报错:ORA-01861: literal does not match format string
- ORA-01861: literal does not match format string
- Oracle异常ORA-01861: literal does not match format string。
- ORA-01861: literal does not match format string 错误!
- 解决ORA-01861: literal does not match format string
- 关于时间比较,ORA-01861: literal does not match format string
- 关于ORA-01861: literal does not match format string