Is there a workaround for ORA-01795: maximum number of expressions in a list is 1000 error?

前端 未结 11 887
忘掉有多难
忘掉有多难 2020-11-27 16:14

Is there a workaround for

\'ORA-01795: maximum number of expressions in a list is 1000 error\'

I have a query and it is selecting fields based

11条回答
  •  情深已故
    2020-11-27 16:48

    Operato union

    select * from tableA where tableA.Field1 in (1,2,...999)
    union
    select * from tableA where tableA.Field1 in (1000,1001,...1999)
    union
    select * from tableA where tableA.Field1 in (2000,2001,...2999)
    

提交回复
热议问题