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

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');
主站蜘蛛池模板: 珠海市| 宜都市| 黎平县| 河源市| 凉山| 盐山县| 天台县| 获嘉县| 庆云县| 东至县| 乐安县| 津市市| 邓州市| 嘉禾县| 平阴县| 徐闻县| 平阴县| 虹口区| 和平区| 崇文区| 达州市| 金门县| 西丰县| 天祝| 广饶县| 集贤县| 桃园市| 宁波市| 石阡县| 安吉县| 开阳县| 河西区| 东至县| 佛山市| 延边| 祁门县| 蓬安县| 商南县| 共和县| 罗平县| 澎湖县|