sql 倒叙,升序

select * from tab order by datetime(时间字段) asc(升序)/desc(降序)

你可能感兴趣的:(sql数据库)