codeDevotee

排序存储的效果图:

根据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,\'^\',\',\')))

 

分类:

技术点:

相关文章:

  • 2021-05-19
  • 2021-07-28
  • 2021-10-25
  • 2021-06-05
猜你喜欢
  • 2021-12-31
  • 2021-12-31
  • 2021-12-31
  • 2022-01-27
  • 2021-12-31
  • 2021-05-21
相关资源
相似解决方案