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