Using “IN” in a WHERE clause where the number of items in the set is very large

前端 未结 10 2404
梦毁少年i
梦毁少年i 2021-02-13 05:30

I have a situation where I need to do an update on a very large set of rows that I can only identify by their ID (since the target records are selected by the user and have noth

10条回答
  •  -上瘾入骨i
    2021-02-13 06:13

    In Oracle there is a limit of values you can put into a IN clause. So you better use a OR , x=1 or x=2 ... those are not limited, as far as I know.

提交回复
热议问题