SQL-子查询-子查询与select连用
子查询可以和select,update,insert,delete连用,例:
①与select连用:
table1:

table2:

SELECT * FROM table1 WHERE name1 IN (SELECT name1 FROM table2);
的效果:

子查询可以和select,update,insert,delete连用,例:
①与select连用:
table1:

table2:

SELECT * FROM table1 WHERE name1 IN (SELECT name1 FROM table2);
的效果:
