1. 首页
  2. 行业
  3. 制造
  4. 关于mysql和oracle子查询order by 的问题

关于mysql和oracle子查询order by 的问题

上传者: 2020-12-17 10:08:58上传 PDF文件 44.19KB 热度 24次
一、MYSQL 首先执行如下脚本创建一个tmpwp表用于复现问题。 create table tmpwp as select 1 aa from dual; select * from (select * from tmpwp order by aa ) as t; insert into tmpwp(aa) VALUES(2); insert into tmpwp(aa) VALUES(67); insert into tmpwp(aa) VALUES(5); insert into tmpwp(aa) VALUES(234); 这个时候我们查询tmpwp表会按如下顺序展示数据,可以发现
下载地址
用户评论