标签:
SQL:结构化查询语言
子查询:
下面例子中SELECT * FROM table1称为Outer Query/ Out Statement
SELECT col2 FROM table2 称为 SubQuery
1 SELECT * FROM table1 WHERE col = (SELECT col2 FROM table2);
子查询可以返回标量、一行、一列或子查询
标签:
原文地址:http://www.cnblogs.com/gzc911/p/4945658.html