码迷,mamicode.com
首页 > 数据库 > 详细

为什么不要使用 select * from xxx (oracle 亲测)

时间:2018-07-09 00:01:47      阅读:495      评论:0      收藏:0      [点我收藏+]

标签:users   com   3.3   int   ble   打开   create   number   select   

打开已用时间
set timing on;
create table users(id number(20), name varchar2(20), password varchar2(20));
insert into users values(111111111111111, ‘爱新觉罗·启星‘, ‘aixinjueluo@sohu.com‘);
insert into users(id, name, password) select * from users; // 插入32768条数据
select * from users; 用时40.58秒
select name from users; 用时23.34秒
select * from users; 用时38.58秒
select name from users; 用时23.91秒
select * from users; 用时39.47秒
select name from users; 用时24.28秒

为什么不要使用 select * from xxx (oracle 亲测)

标签:users   com   3.3   int   ble   打开   create   number   select   

原文地址:https://www.cnblogs.com/BaiLaowu/p/9281800.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!