mssqlinsertinto和insertintoselect性能比较
来源:动视网
责编:小采
时间:2020-11-09 07:13:26
mssqlinsertinto和insertintoselect性能比较
mssqlinsertinto和insertintoselect性能比较:使用insert into table(field, ...)values(value, ...),insert into table(field, ...)values(value, ...)...的情况 使用insert into table(field, ...)select(value,...) union all select(val
导读mssqlinsertinto和insertintoselect性能比较:使用insert into table(field, ...)values(value, ...),insert into table(field, ...)values(value, ...)...的情况 使用insert into table(field, ...)select(value,...) union all select(val

使用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毫秒上下徘徊。
您可能感兴趣的文章:
数据库插入数据之select into from与insert into select区别详解insert into select和select into的使用和区别介绍解析MySQL中INSERT INTO SELECT的使用SELECT INTO 和 INSERT INTO SELECT 两种表复制语句简单介绍INSERT INTO SELECT语句与SELECT INTO FROM语句的一些区别insert select与select into 的用法使用说明select into 和 insert into select 两种表复制语句insert into tbl() select * from tb2中加入多个条件SELECT INTO 和 INSERT INTO SELECT 两种表复制语句详解(SQL数据库和Oracle数据库的区别)
mssqlinsertinto和insertintoselect性能比较
mssqlinsertinto和insertintoselect性能比较:使用insert into table(field, ...)values(value, ...),insert into table(field, ...)values(value, ...)...的情况 使用insert into table(field, ...)select(value,...) union all select(val