select * from #A order by (case charindex('西瓜',text_field) when 0 then 0 else 1 end)
                            +(case charindex('土豆',text_field) when 0 then 0 else 1 end)
                            +(case charindex('青椒',text_field) when 0 then 0 else 1 end) desc

相关文章:

  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-01-11
  • 2021-12-18
  • 2021-11-27
  • 2022-12-23
  • 2021-11-26
猜你喜欢
  • 2022-01-07
  • 2021-04-09
  • 2022-01-08
  • 2021-12-01
  • 2021-11-05
  • 2021-11-17
  • 2022-12-23
相关资源
相似解决方案