`
yeruowei
  • 浏览: 24265 次
  • 性别: Icon_minigender_2
  • 来自: 西安
社区版块
存档分类
最新评论

ORA-00932 clob字段不能union的问题

 
阅读更多

Oracle 使用union查询带有clob字段的两张表,提示错误:

 

ORA-00932:数据类型不一致:应为-,但却获得CLOB

 

解决办法:

把union改为union all。原因是lob字段不能做group by ,而union中需要使用group by过滤到重复纪录。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics