首页 > 数据库技术 > 详细

c#排序sql语句查询

时间:2018-11-08 14:51:53      阅读:185      评论:0      收藏:0      [点我收藏+]

排序存储的效果图:

技术分享图片

根据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语句查询

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!