MySQL里desc和asc的意思
desc是descend 降序意思
asc 是ascend 升序意思
sql = "select 表内容名 from 数据库表名 Putout=true order by 读取的排序表名 asc"
例如
sql = "select * from user where Putout=true order by time desc" //按最新时间来排序
sql = "select * from user where Putout=true order by time asc" //按早时间来排序
时间: 2024-11-03 05:41:26