为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。 【DM版本】:8 【操作系统】:windows sqlserver 【CPU】: 【问题描述】*:兼容一下写法吗(OUTPUT ):
INSERT ZY_LOG ( JGDM ,CZNR ,CZSJ ,CZRYDM) OUTPUT Inserted.JGDM,Inserted.CZNR VALUES ( ‘000’ , ‘test’ , GETDATE() ,‘test’ )
如果是预期实现一次性插入多表相同记录的话,可以通过insert all进行替代
insert all into test103(id1,id2) into test1033(id1,id2) select 100,100 from dual union all select 200,200 from dual; 执行成功, 执行耗时2毫秒. 执行号:772
如果是预期实现一次性插入多表相同记录的话,可以通过insert all进行替代
insert all
into test103(id1,id2) into test1033(id1,id2)
select 100,100 from dual
union all
select 200,200 from dual;
执行成功, 执行耗时2毫秒. 执行号:772