ORA-01460:unimplemented or unreasonable conversion

今天运行SP的时候,居然蹦出来ORA-0460的错误。查看错误日志找到问题所在。噢, 原来是string more than 4000。顺手查看系统上的SP, 发现都有这个共同毛病,给某些变量赋值的时候用 SELECT  .... INTO ..... FROM DUAL;  为避免这个错误,最好是直接赋值。

总结一下这个错误会出现的机制情况, 最容易想到的就是to_char, to_date, to_number, 其他的场景可能...

ORA-01460 unimplemented or unreasonable conversion requested 

Cause: The requested format conversion is not supported.

Action: Remove the requested conversion from the SQL statement. Check the syntax for the TO_CHAR, TO_DATE, and TO_NUMBER functions to see which conversions are supported.

 

There are other reported causes of the ORA-01460 as well:

  • Incompatible character sets can cause an ORA-01460
  • Using SQL Developer, attempting to pass a string to a bind variable value in excess of 4000 bytes can result in an ORA-01460
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值