送分题,Oracle降序和升序

 时间:2026-02-14 11:27:31

1、创建测试表,

create table test_name(id varchar2(20),name varchar2(20), birthday date);

送分题,Oracle降序和升序

2、插入测试数据;

insert into test_name values(1, 'aa', to_date('1990-01-02 10:10:50','yyyy-mm-dd hh24:mi:ss'));

insert into test_name values(2, 'bb', to_date('1987-02-02 10:01:25','yyyy-mm-dd hh24:mi:ss'));

insert into test_name values(3, 'cc', to_date('2000-01-25 09:01:25','yyyy-mm-dd hh24:mi:ss'));

commit;

送分题,Oracle降序和升序

3、编写语句,根据birthday字段进行升序;

   select * from test_name t order by birthday;

送分题,Oracle降序和升序

4、编写语句,根据birthday字段进行降序;

   select * from test_name t order by birthday desc;

送分题,Oracle降序和升序

  • svn怎么切换账号?
  • idea怎么安装离线插件
  • 公司新人svn使用教程
  • notepad格式化json
  • IDEA怎么查找某个文件
  • 热门搜索
    钓大鱼用什么鱼竿 做设计用什么笔记本好 wbc是什么意思 有什么好听的老歌 生吃螃蟹易得什么病 千真万确的意思 五岳归来不看山黄山归来不看岳的意思 small是什么意思 sweet是什么意思中文 从容的意思