解决:Oracle 异常 ORA-01861: literal does not match format string(字符串格式不匹配)
来源:互联网 发布:麦当劳四川辣酱 知乎 编辑:程序博客网 时间:2024/05/01 00:33
今天在写存储过程的时候,老是报一个错。如下,记录下来,以供日后查阅。
报错:
Oracle 异常 ORA-01861: literal does not match format string(字符串格式不匹配)原因:
如果直接按照字符串方式,或者,直接使用'2013-2-26 11:07:25',没有指定日期格式,就会报错
正解:必须指定日期格式,如下:
to_date('2013-2-26 11:07:25' , '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
- 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
- Oracle 异常 ORA-01861: literal does not match form
- 关于时间比较,ORA-01861: literal does not match format string
- literal does not match format string 解决办法
- literal does not match format string
- Weblogic&oracle 异常 ORA-01861: 文字与格式字符串不匹配
- SQL-Oracle异常--java.sql.SQLDataException: ORA-01861: 文字与格式字符串不匹配
- Qt游戏开发必备!用QtMultimedia播放Ogg格式音乐
- 一些页面自动跳转的实现
- WP8为LongListSelector添加类似ListBox的点击凹陷效果
- 无法通过windows installer服务安装此安装程序包。您必须安装带有更新版本windows Installer服务的Windows
- linux mysql 找不到 <mysql/mysql.h>
- 解决:Oracle 异常 ORA-01861: literal does not match format string(字符串格式不匹配)
- 动态库的静态和动态加载方法
- 实现守护进程的步骤
- [Python入门及进阶笔记00]-写在前面(目录/书籍/学习路线/其他)
- Nginx查看并发链接数(界面和命令)
- java.sql.SQLException: ORA-08102: index key not found, obj# 80756, file 18, block 35018 (2)
- 人行的利与弊
- 使用水晶报表不刷新数据的问题
- cocos2d-x实现游戏剧情对话——打字效果