词语五个字。:如何在asp中查讯数据库的记录集升降序排列

来源:百度文库 编辑:高校问答 时间:2024/10/06 13:59:25

select * from table order by fild1 (升序)
select * from table order by fild1 desc (降序)
select * from table order by fild1 asc , fild2 desc (先按第一个的升序,再按第二个的降序)

select * from 表 order by 列 asc    (升序)
select * from 表 order by 列 desc    (降序)
order by 后面的列是按照那个列排序