一句话解决更新和插入的问题

if exists(select 1 from Pat_ResultScores where SID=:SID) update Pat_ResultScores set Scores=:Scores,UserY=:UserY,UserP=:UserP where SID=:SID else insert into Pat_ResultScores(SID,Scores,UserY,UserP) values(:SID,:Scores,:UserY,:UserP)

相关文章:

  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2021-07-16
猜你喜欢
  • 2022-02-28
  • 2021-07-15
  • 2021-09-01
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
相关资源
相似解决方案