How To Workaround ORA-01795: maximum number of expressions in a list is 1000 (Doc ID 406321.1)

Last updated on JULY 08, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 8.1.7.0 to 12.2.0.1 [Release 8.1.7 to 12.2]
Information in this document applies to any platform.
***Checked for relevance on 18-Apr-2016***

Goal

Select statement fails when specifying more than 1000 expressions within the 'IN' operator's list:
ORA-01795: maximum number of expressions in a list is 1000

How to workaround this limitation?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms