【2018-01-11】Sql Server-条件高级查询
条件修改:
update 表名 set 列名 = 值 where 列名 = 值
条件删除:
delete from 表名 where 列名 = 值
-高级查询
+条件查询
select * from 表名 where 筛选条件
+ 查列 *改为要查看的列,多列逗号隔开
+ 筛选条件 where 列名 = >= <= > < 值 and or
+模糊查询
select * from 表名 where 列名 like '%值%' (%通配符)
+排序查询
select * from 表名 order by 列名 asc / desc
+去重查询
select distinct 列名 from 表名
+分组查询
select 某一列名 from 表名 group by 对应的列名 having 条件
+子查询
将查询语句当做值来使用
some、any、all、in、not in、exists