- MySQL 8 for Big Data
- Shabbir Challawala Jaydip Lakhatariya Chintan Mehta Kandarp Patel
- 73字
- 2021-08-20 10:06:12
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');
推薦閱讀
- DB2 V9權威指南
- Learning Apex Programming
- Cross-platform Desktop Application Development:Electron,Node,NW.js,and React
- Mastering QGIS
- 碼上行動:零基礎學會Python編程(ChatGPT版)
- RTC程序設計:實時音視頻權威指南
- 單片機應用技術
- Getting Started with Laravel 4
- 基于Struts、Hibernate、Spring架構的Web應用開發
- Java網絡編程實戰
- 深入淺出Go語言編程
- Emgu CV Essentials
- Java EE Web應用開發基礎
- Learning Jakarta Struts 1.2: a concise and practical tutorial
- Angular Design Patterns