- MySQL 8 for Big Data
- Shabbir Challawala Jaydip Lakhatariya Chintan Mehta Kandarp Patel
- 73字
- 2021-08-20 10:06:14
Subquery
A Select statement under the select statement is called a subquery. This sub statement can be used to select the column or in conditional cases. A subquery can also be nested within another query statement like INSERT, UPDATE, or DELETE.
The following query returns a set of users who are located in Ahmedabad using a subquery:
SELECT firstName, lastName FROM users
WHERE city IN
(SELECT city FROM cities WHERE city = 'Ahmedabad');
推薦閱讀
- Spring 5.0 Microservices(Second Edition)
- Learning SQLite for iOS
- RTC程序設(shè)計:實時音視頻權(quán)威指南
- Learning Linux Binary Analysis
- Python機(jī)器學(xué)習(xí)算法與實戰(zhàn)
- 快人一步:系統(tǒng)性能提高之道
- Keras深度學(xué)習(xí)實戰(zhàn)
- Building Android UIs with Custom Views
- D3.js By Example
- Instant PHP Web Scraping
- 響應(yīng)式Web設(shè)計:HTML5和CSS3實戰(zhàn)(第2版)
- Photoshop CC移動UI設(shè)計案例教程(全彩慕課版·第2版)
- Machine Learning for OpenCV
- 3D Printing Designs:Octopus Pencil Holder
- Manage Your SAP Projects with SAP Activate