首页 > 数据库 > SQL Server > 正文

mssql insert into 和insert into select性能比较

2020-07-25 13:28:29
字体:
来源:转载
供稿:网友
使用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毫秒上下徘徊。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表