您现在的位置是:网站首页> 编程资料编程资料

mssql insert into 和insert into select性能比较_MsSql_

2023-05-26 470人已围观

简介 mssql insert into 和insert into select性能比较_MsSql_

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

 

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

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

-六神源码网