摘要:
Lesson One hundred and thirty-one Don’t be so sure!Where are you going to spend your holidays this year, Gary?We may go aboard.I’m not sure.My wife wants to go to Egypt.I’d like to go there, too.We can’t make up our minds.Will you travel by sea or by air?We may travel by sea.It’s cheaper, isn’t it?I 阅读全文
摘要:
简介:嵌入在其他SQL语句中的SELECT语句称为子查询。为在多个SELECT语句的结果集上进行集合操作,可以使用集合操作UNION、UNION ALL、INTERSECT和MINUS。一、子查询1.单行子查询只返回一行一旬数据的子查询被称为单行子查询。(1)在WHERE子句中使用子查询在WHERE子句中使用子查询时,可以使用单行比较符=、<>、<、>、<=、>=等。在这种情况下,子查询的结果作为主查询的查询条件。SELECT * FROM teachers WHERE wage < (SELECT AVG(wage) FROM teachers);S 阅读全文