且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

过滤输出子句 sql

更新时间:2023-11-26 20:08:52

insert into #tbl_temp
select col1
from
  (
    insert into tbl_1(col1,col2) 
    output Inserted.col1
    select col3, col4 
    from tbl_2
  ) as T
where T.col1 > 0