Sql Server子查询、GROUP BY分组、having查询

1.子查询 语法:select ... from 表1 where 字段1 > (子查询语句) 例句:查看年龄比“李斯文”大的学员,要求显示学员信息; select * from stuinfo where stuage > (select stuage from stuinfo where stuname = '李斯文') 实战:查询北京市下面的所有地区 select name from are
相关文章
相关标签/搜索