in常用于where表达式中,其作用是查询某个范围内的数据。
(推荐教程:)
用法:
select * from where field in (value1,value2,value3,…)
举例:
select * from book where id in (2,4)
not in与in作用相反,用法和示例如下:
用法:
select * from where field not in (value1,value2,value3,…)
举例:
select * from book where id not in (2,4)
Copyright © 2019- yule263.com 版权所有 湘ICP备2023023988号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务