select a from test order by 1 什么意思

来源:百度知道 编辑:UC知道 时间:2024/06/01 08:48:16

按查询列中的第一列排序,默认 ASC 升序

那这里就是按照a的值升序,如果写其他数字,则类推,但你这个只有一列……

从test表中选择a这个记录 以升序排列吧??
Order By 是支持多字段排序,写在前面的字段先排序。

select * from bb..a

其实和
select a from test order by a是一样的!!order by1就是按照第一列排序