在sql server里如何实现order by case 影响执行效率么 select * from tb order by case when 序号!=0 then
select*fromtborderbycasewhen序号!=0then1else2end,id和select*fromtborderby序号,id哪个效率搞...
select * from tb order by case when 序号!=0 then 1 else 2 end,id
和
select * from tb order by 序号,id
哪个效率搞 展开
和
select * from tb order by 序号,id
哪个效率搞 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询