- 时间:2021-01-11 16:05 编辑: 来源: 阅读:
- 扫一扫,手机访问
摘要:mssql insert into 和insert into select性能比较
使用insert into table(field, ...)values(value, ...),insert into table(field, ...)values(value, ...)...的情况
[img]http://files.jb51.net/upload/2010-3/20100305223051906.jpg[/img]
使用insert into table(field, ...)select(value,...) union all select(value,...) union all select(value,...) ...的情况
[img]http://files.jb51.net/upload/2010-3/20100305223108768.jpg[/img]
我一次插入的数据是:1190条。用insert into所用的时间在510毫秒上下徘徊,而用insert into select所用的时间在16毫秒上下徘徊。