Oracle 使用union查询带有clob字段的两张表,提示错误:
ORA-00932:数据类型不一致:应为-,但却获得CLOB
解决办法:
把union改为union all。原因是lob字段不能做group by ,而union中需要使用group by过滤到重复纪录。
当在Oracle中使用union查询包含CLOB字段的两张表时遇到ORA-00932错误。解决方案是将union替换为union all,因为CLOB字段无法进行group by操作。
Oracle 使用union查询带有clob字段的两张表,提示错误:
ORA-00932:数据类型不一致:应为-,但却获得CLOB
解决办法:
把union改为union all。原因是lob字段不能做group by ,而union中需要使用group by过滤到重复纪录。
1830
1万+

被折叠的 条评论
为什么被折叠?
