java.sql.SQLException: ORA-24335: 无法支持 1000 列以上
select * from test where keyword in (a,b,c) union select * from test where keyword in (d,e,f)
分段 拼
使用分页查询,参考http://blog.csdn.net/zhoufoxcn/article/details/2174234
你想在一个表里弄 1000 多个列?
说清楚是1000行还是1000列
insert 语句的话 可以循环插入
in 条件的话 可以使用 and ( field in(?,?,...) or field in (?,?,...))
是否用了 INSERT ALL. This feature is designed for multiple table inserts (MTI), it is not designed to insert multiple rows in one table. You can re-write your query to use single insert statements. 改用insert
refer url:http://blog.csdn.net/engchina/article/details/53514714
安装好Oracle12C,使用SQL语句进行查询时,当查询的列没有达到1000,但是关联的表过多,关联表的总列数超过了1000的话,会报上面的错误。
解决方案如下:
用SysDba登录,执行以下这句话就可解决:alter system set "_fix_control"='17376322:OFF';
这是Oracle12C的一个Bug,也可到官网去下载解决这个Bug的补丁,路径:http://dba.stackexchange.com/questions/128621/understanding-ora-01792-maximum-number-of-columns-in-a-table-or-view-is-1000