一个字段中,某一个值在最靠前,其他值在后

将表department中字段名为cdepcode的值‘abc’靠前,其他值在后 即: select * from department where cdepcode=’abc’ union all select * from department where cdepcode<>’abc’ 但若是加上order by 后会打乱顺序,此操做失效。web
相关文章
相关标签/搜索