文章目录
order by关键字用于对查询的结果集进行排序。
我们通过示例来介绍order by关键字的用法。
一、生成测试数据
用以下SQL创建超女基本信息表(T_GIRL),插入一些测试数据。
create table T_GIRL
(
id char(4) not null, -- 编号
name varchar2(10) not null, -- 姓名
yz varchar2(10) null, -- 颜值
sc varchar2(10) null, -- 身材
weight number(4,1) not null, -- 体重
height number(3) not null, -- 身高
birthday date not null, -- 出生时间
memo varchar2(