mssql insert into 和insert into select性能比较
发布时间:2020-09-25 09:54:50 所属栏目:MsSql 来源:互联网
导读:今天没事,测了一下insert into和insert into select的性能,没想到这两个性能差别这么大。
使用insert into table(field,...)values(value,...),insert into table(field,...)...的情况 使用insert into table(field,...)select(value,...) union all select(value,...) union all select(value,...) ...的情况 我一次插入的数据是:1190条。用insert into所用的时间在510毫秒上下徘徊,而用insert into select所用的时间在16毫秒上下徘徊。 (编辑:莱芜站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |