帮帮忙我有个select语句,我简单写一下,就是selectafrom表1wherebin(c1,c2,...,cn),这里ORACLE规定cn不得超
帮帮忙
我有个select语句,我简单写一下,就是
select a from 表1 where b in (c1,c2,...,cn), 这里ORACLE规定cn不得超过1000,而实际上我的cn超过了1000,请问我该怎么办?有没有什么好办法一步解决?
[解决办法]
用临时表,把c1...cn插入临时表
select a from 表1 where b in (select c from #tmp)
