例如 Select * from tablename where col in (‘col1’,’col2’ ……..) 如果in 后面的Item过多的话,超过1000就会出现这种错误。 解决方法是: Select * from tablename where col in (‘col1’,’col2’ …….., ‘col1000’) or col in (‘col1001’, …………)
<br />例如<br />Select * from tablename where col in (‘col1’,’col2’ ……..)<br />如果in 后面的Item过多的话,超过1000就会出现这种错误。<br />解决方法是:<br />Select * from tablename where col in (‘col1’,’col2’ …….., ‘col1000’) or col in (‘col1001’, …………)<br />在构建SQL语句时稍微注意一下就好了。