十.子查询
1.求平均值
2.查询价格大于平均值的电脑
3.用ANY SOME ALL 修饰的比较运算符
4.用IN NOT IN 引发的子查询
SELECT goods_id,goods_name,goods_price FROM tdb_goods
WHERE goods_price <> ALL (SELECT goods_price FROM tdb_goods
WHERE goods_cate='超级本');
any 运算符与in 等效。
!=all或<> all运算符与not in等效。