mssql insert into 和insert into select性能比较

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

mssql insert into 和insert into select性能比较


 


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


mssql insert into 和insert into select性能比较


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

原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/tech/database/233767.html

(0)
上一篇 2022年1月23日 20:59
下一篇 2022年1月23日 20:59

相关推荐

发表回复

登录后才能评论