insert into test_tb output inserted.id,inserted.data  values('c'),('d')
delete from test_tb output deleted.id where data='c'
update test_tb set data='abc' output inserted.id  as ID ,deleted.data as old_data ,inserted.data as new_data where data='c'

with temp_tb as
(
  select id,data from test_tb where data='abc'
)
update temp_tb set data='123'

 

相关文章:

  • 2021-09-19
  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-05-08
猜你喜欢
  • 2022-01-17
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
相关资源
相似解决方案