官术网_书友最值得收藏!

IN/NOT IN

The IN operator is used to compare multiple values in the where clause. For example, the following query is used to find all users that have city either new york or chicago:

select * from users where city IN ('new york','chicago')

NOT IN works in reverse, for example, find all users that do not have city either new york or chicago:

select * from users where city NOT IN ('new york','chicago');
主站蜘蛛池模板: 喀喇沁旗| 阿荣旗| 广丰县| 平湖市| 东平县| 茂名市| 临漳县| 海城市| 元氏县| 慈溪市| 林西县| 莆田市| 宜春市| 武汉市| 米脂县| 腾冲县| 来宾市| 高密市| 广饶县| 社旗县| 巴彦淖尔市| 曲阜市| 乌鲁木齐县| 永兴县| 寿阳县| 那坡县| 金湖县| 巢湖市| 察哈| 明水县| 南城县| 龙江县| 上饶县| 阿克陶县| 米易县| 宁国市| 海门市| 浙江省| 稷山县| 尼勒克县| 盐山县|