将表department中字段名为cdepcode的值‘abc’靠前,其余值在后
即:
select * from department where cdepcode=’abc’
union all
select * from department where cdepcode<>’abc’
但如果加上order by 后会打乱顺序,此操作失效。
将表department中字段名为cdepcode的值‘abc’靠前,其余值在后
即:
select * from department where cdepcode=’abc’
union all
select * from department where cdepcode<>’abc’
但如果加上order by 后会打乱顺序,此操作失效。