【发布时间】:2012-02-19 13:53:30
【问题描述】:
我想知道使用IN子句时集合的大小是否有限制。
从 A 中选择 a,其中 a.b IN (:c)
而 c 是一个列表(例如)。
【问题讨论】:
我想知道使用IN子句时集合的大小是否有限制。
从 A 中选择 a,其中 a.b IN (:c)
而 c 是一个列表(例如)。
【问题讨论】:
这取决于特定的 DBMS,即。 sqlite 和 postgres 有很大不同的限制(不足为奇)。
编辑:
对于甲骨文:How to put more than 1000 values into an Oracle IN clause
对于 mysql:http://explainextended.com/2009/08/18/passing-parameters-in-mysql-in-list-vs-temporary-table/
【讨论】: