mssql insert into 和insert into select性能比较

2023年 4月 17日 34.8k 0

使用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,...) ...的情况

使用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毫秒上下徘徊。

相关文章

Oracle如何使用授予和撤销权限的语法和示例
Awesome Project: 探索 MatrixOrigin 云原生分布式数据库
下载丨66页PDF,云和恩墨技术通讯(2024年7月刊)
社区版oceanbase安装
Oracle 导出CSV工具-sqluldr2
ETL数据集成丨快速将MySQL数据迁移至Doris数据库

发布评论