请用一句sql写出将id为1234放到表的第一列,其他紧随其后并以正序排列的查询语句。

答案:

select * from table where ID=2
union all
select * from table where ID <>2 order by id desc

相关文章:

  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-01-09
  • 2022-12-23
  • 2021-11-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-10-24
  • 2021-11-10
  • 2022-02-05
  • 2021-10-28
相关资源
相似解决方案