ORA-00932: inconsistent datatypes: expected NUMBER got CHAR:

获取的目标类型与源类型不一致,多出现在case when 语句中,when的结果类型与源类型不一致的情况,如:

case u.user_type_id when '1' then '经理' else '普通职员'

此时,user_type_id是number类型的,就会报此错误,将when后的 ‘1’ 改成 1 即可

原文:https://blog.csdn.net/ethan_10/article/details/80352466

 

相关文章:

  • 2022-12-23
  • 2021-11-11
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
猜你喜欢
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案