ITeye博客

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

yeruowei · 2011-09-26 11:38 · Oracle · 数据库 · Markdown

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

 

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

 

解决办法:

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。