一個字段中,某一個值在最靠前,其他值在後

將表department中字段名爲cdepcode的值‘abc’靠前,其他值在後 即: select * from department where cdepcode=’abc’ union all select * from department where cdepcode<>’abc’ 但若是加上order by 後會打亂順序,此操做失效。web
相關文章
相關標籤/搜索