ora-01789:query block has incorrect number of result columns

来源:互联网 发布:name域名 编辑:程序博客网 时间:2024/06/09 16:14
author:skate
time:2009-06-11

由于自动管理分区的过程速度慢,所以今天在调整自动管理分区的过程时,遇到下面的这个错误
ora-01789:query block has incorrect number of result columns
goole之后,发现
这种问题一般出现在用UNION将若干个select连接到一起,由于select后的列的个数不相等而造成的。

比如
select userid from usercustom
union
select userid,loginname from usercustom

 


就会报这种错误。

 

 

 

---end---

原创粉丝点击