请用一句sql写出将id为1234放到表的第一列,其他紧随其后并以正序排列的查询语句。
答案:
select * from table where ID=2
union all
select * from table where ID <>2 order by id desc
请用一句sql写出将id为1234放到表的第一列,其他紧随其后并以正序排列的查询语句。
答案:
select * from table where ID=2
union all
select * from table where ID <>2 order by id desc