加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

SQL Server insert into 和insert into select性能比较

发布时间:2020-12-12 07:55:33 所属栏目:MsSql教程 来源:网络整理
导读:感兴趣的小伙伴,下面一起跟随编程之家 jb51.cc的小编两巴掌来看看吧! 使用insert into table(field,...)values(value,...),insert into table(field,...)...的情况 【图片暂缺】 使用insert into table(field,...)select(value,...) union all select(val

感兴趣的小伙伴,下面一起跟随编程之家 52php.cn的小编两巴掌来看看吧!

使用insert into table(field,...)values(value,...),insert into table(field,...)...的情况

【图片暂缺】

 

使用insert into table(field,...)select(value,...) union all select(value,...) union all select(value,...) ...的情况

【图片暂缺】

我一次插入的数据是:1190条。用insert into所用的时间在510毫秒上下徘徊,而用insert into select所用的时间在16毫秒上下徘徊。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读