我正在使用一个 IN 子句,它需要在这些不按顺序的 ID 集中搜索 id,这意味着它来自不同的条件。如何解决这个问题?
SELECT DISTINCT ID FROM "projeck"."mytable" "t" WHERE staffID IN (75953,196262,196387,133585,195639,196702,195790,195820,192903,145383,179603,175896,176554,43545,154843,183798,195767,195715,etc..etc.. etc..)
我收到了这个 oracle 错误
General error: 1795 OCIStmtExecute: ORA-01795: maximum number of expressions in a list is 1000