1、升序排列
create index ix_table1 on table1 (column1,column2);
select column1,column2 from table1 order by column1,column2;
2、降序排列
create index ix_table1 on table1 (column1 desc,column2);
select column1,column2 from table1 order by column1 desc,column2;
时间: 2024-10-02 05:15:43