desc是倒序,asc是正序
比如
select * from table order by id asc
这样就是从id由小到大的顺序排列,如果是desc则是由大到小排列了,另外,如果最后不写asc,一般的数据库都默认为由小到大。