<p class="intro">SQL学习笔记八 索引,表连接,子查询,ROW_NUMBER,学习sqlserver的朋友可以看下。</p> 索引 <br><br>经常要查询的语句,则给它建一个索引 <br><br>表连接 <br><br>select T_Oders as o join T_Customers as C on o.CustomerId = c.Id <br><br>子查询 <br><br>单值子查询 <br><br>单列多值子查询 <br><br><br>ROW_NUMBER()函数 <br><br>ROW_NUMBER() OVER(ORDER BY Fsalary DESC)