select
device_id,
age
from
user_profile
order by
age ASC;
从名为 “user_profile” 的数据表中,选取 “device_id”(设备标识)和 “age”(年龄)这两列的数据。
然后,按照 “age” 列的值以升序(ASC 即 ASCENDING,升序的意思)进行排序展示。

select
device_id,
age
from
user_profile
order by
age ASC;
从名为 “user_profile” 的数据表中,选取 “device_id”(设备标识)和 “age”(年龄)这两列的数据。
然后,按照 “age” 列的值以升序(ASC 即 ASCENDING,升序的意思)进行排序展示。