(1)
select * from table where name='D'
UNION ALL
select * from table where name<>'D' 

(2)

SELECT CASE WHEN [name]='D' THEN 0 ELSE 1 END FLAG,* FROM TABLE
order by flag asc

相关文章:

  • 2021-09-17
  • 2021-07-05
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-16
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
相关资源
相似解决方案