ORA-01847: day of month must be between 1 and last day of month 解决方法
2015-03-24 23:12
1101 查看
Caused by: java.sql.BatchUpdateException: ORA-01847: day of month must be between 1 and last day of month
该问题可能有2种情况:
1、日期本身是数据非法的,如2月30日,select to_date('2015-02-30','yyyy-mm-dd') from dual;
2、数据类型不一致。比如代码中的数据类型是String,而数据库中对应的是Date类型,插入数据库时,同样也会报该异常。
该问题可能有2种情况:
1、日期本身是数据非法的,如2月30日,select to_date('2015-02-30','yyyy-mm-dd') from dual;
2、数据类型不一致。比如代码中的数据类型是String,而数据库中对应的是Date类型,插入数据库时,同样也会报该异常。
相关文章推荐
- ORA-01847: day of month must be between 1 and last day of month 解决方法
- Oracle 之 ORA-01847: day of month must be between 1 and last day of month
- ORA-01847: day of month must be between 1 and last day of month
- oracle日期时间段查询遇到问题to_date ora-01847 day of month must be between 1 and last day of month
- OGG ORA-01847: day of month must be between 1 and last day of month (status = 1847)
- FRM-30187: Size of CHAR column in record group must be between 1 and 2000 解决方法
- FRM-30187: Size of CHAR column in record group must be between 1 and 2000
- ORA-00093: pga_aggregate_target must be between 10M and 4096G-1
- 【SQL】How to get First and Last day of a month – TSQL
- FRM-30187: Size of CHAR column in record group must be between 1 and 2000
- ora-01841 full year must be between -4713 and +9999
- A context path must either be an empty string or start with a '/' and do not end with a '/' 问题解决方法
- ORA-00093:_shared_pool_reserved_min_alloc must be between 4000 and 612xxx的另一种解决方案
- HBase异常:hbase-default.xml file seems to be for and old version of HBase的解决方法
- Error: FRM-30187: Size of CHAR column in record group must be between 1 and 2000
- Android解决"parameter must be a descendant of this view(参数必须是此视图的子视图 )"问题的方法
- 错误“a label can only be part of a statement and a declaration is not a statement”解决方法
- Error: initial value of reference to non const must be lvalue 原因以及解决方法
- FRM-30187: Size of CHAR column in record group must be between 1 and 2000
- JMeter学习-027-JMeter参数文件(脚本分发)路径问题:jmeter.threads.JMeterThread: Test failed! java.lang.IllegalArgumentException: File distributed.csv must exist and be readable解决方法