---
title: "ORA-00932 clob字段不能union的问题"
author: "yeruowei"
date: "2011-09-26T11:38:48Z"
tags: []
categories: ["数据库"]
slug: "ora-00932-clob-union"
draft: false
lastmod: "2011-09-26T11:40:29Z"
id: 1180487
url: "https://yeruowei.iteye.com/blog/1180487"
---

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

 

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

 

解决办法：

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