create table t(id int); create index idx_t_id on t(id); begin for i in 1..1000000 loop insert into t values(i); if mod(i,100)=0 then commit; end if; end loop; end; select * From t;
create table t(id int); create index idx_t_id on t(id); begin for i in 1..1000000 loop insert into t values(i); if mod(i,100)=0 then commit; end if; end loop; end; select * From t; 创建一个临时表,插入一百万条数据,进行查询,为什么MSSQL 12秒完成,oracle花了8分多钟,小弟刚学习oracle,望赐教
3,494
社区成员
18,710
社区内容
加载中
试试用AI创作助手写篇文章吧