SQL学习笔记八 索引,表连接,子查询,ROW_NUMBER
时间:2021-05-31 08:25:23|栏目:MsSql|点击: 次
索引
经常要查询的语句,则给它建一个索引
表连接
select T_Oders as o join T_Customers as C on o.CustomerId = c.Id
子查询
单值子查询
单列多值子查询
ROW_NUMBER()函数
ROW_NUMBER() OVER(ORDER BY Fsalary DESC)
经常要查询的语句,则给它建一个索引
表连接
select T_Oders as o join T_Customers as C on o.CustomerId = c.Id
子查询
单值子查询
单列多值子查询
ROW_NUMBER()函数
ROW_NUMBER() OVER(ORDER BY Fsalary DESC)