Young87

当前位置:首页 >个人收藏

学习笔记(9):MySQL数据库从入门到实战课-子查询EXISTS和IN的使用

立即学习:https://edu.csdn.net/course/play/27328/370702?utm_source=blogtoedu

where子句使用in语法

select column_name from table_name where column_name IN(value1,vaule2,...)

子查询in语法

select column_name from table_name where column_name IN(select column_name from table_name where condition)

where子句使用exists语法

select column_name1 from table_name1 where exists(select * from table_name2 where condition);

除特别声明,本站所有文章均为原创,如需转载请以超级链接形式注明出处:SmartCat's Blog

上一篇: JavaScript对象

下一篇: YOLOv4改进版重磅问世!Yolov4扩展版!Yolov4原班人马重磅推出Scaled-YOLOv4: Scaling Cross Stage Partial Network

精华推荐