这个错误一般出现在日期时间字段上,即你插入的时间格式和数据库现有的时间格式不一致,解决的方法是格式化你

插入的时间: to_date('#','yyyy-mm-dd hh24:mi:ss')

  注:yyyy-mm-dd hh24:mi:ss是因为oracle不区分MM和mm大小写,分钟写成mi否则会显示月份。


这样的插入的时候就不会报这个ORA-01861


当用pl/sql developer的text importer的时候,就会经常遇到这个错误,由于pl/sql developer的bug,有时不
能把所有的date列格式化,就需要手工格式化date列。

 

相关文章:

  • 2022-12-23
  • 2022-01-05
  • 2022-01-05
  • 2022-01-31
猜你喜欢
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案