c#排序sql语句查询
排序存储的效果图:
根据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,'^',',')))
本文来自博客园,作者:沉迷编程的程序员,转载请注明原文链接:https://www.cnblogs.com/codeDevotee/p/9928988.html
欢迎各位找我代写程序,python、c#、web等都可以,加我请注明博客园微信:A15919195482