升序 asc降序 desc在排序时,如果不写asc/desc的时候,默认为升序排列,若想按降序排列,必须写desc
升序和降序
desc 升序asc 降序
升序 asc降序 desc例子:select id,name,code from table_01 order by name asc,code desc
升序 asc,降序 desc,在排序时,如果不写asc/desc的时候,默认为升序排列,若想按降序排列,必须写desc