码迷,mamicode.com
首页 > 数据库 > 详细

c#排序sql语句查询

时间:2018-11-08 15:03:16      阅读:328      评论:0      收藏:0      [点我收藏+]

标签:sql存储过程   图片   效果   src   char   inf   bsp   png   where   

排序存储的效果图:

技术分享图片

根据id排序的sql存储过程:

 DECLARE @type varchar(5000)
select @type=sortable_text from Sortable with(nolock) where sortable_type=‘NoteType‘ and [key]=‘00000000‘
    
    select * from Note with(nolock) where  [key]=‘00000000‘
    Order By charindex(‘,‘+ convert(varchar,id) +‘,‘, (SELECT REPLACE(@type,‘^‘,‘,‘)))

 

c#排序sql语句查询

标签:sql存储过程   图片   效果   src   char   inf   bsp   png   where   

原文地址:https://www.cnblogs.com/codeDevotee/p/9928988.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!