Merge into [tableName] as t

Using(select [@id] as tid) as t1 on t1.tid=t.id

when matched then update set name='name1'

when not matched then insert(name) values('name');

 

相关文章:

  • 2022-12-23
  • 2021-12-10
  • 2021-08-27
  • 2021-10-19
  • 2019-12-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-11-01
  • 2020-12-23
  • 2021-12-13
相关资源
相似解决方案