Getting the Id of a row I updated in Sql Server

前端 未结 4 758
别那么骄傲
别那么骄傲 2020-12-01 10:27

I\'m trying to return the Id of a row I update in sql

UPDATE ITS2_UserNames
  SET AupIp = @AupIp
  WHERE @Customer_ID = TCID AND @Handle_ID = ID

  SELECT @         


        
4条回答
  •  执念已碎
    2020-12-01 11:07

    If you want to find out the records that match that update you should do a select with it

    Select IdColumn
    From ITS2_UserNames
    WHERE @Customer_ID = TCID AND @Handle_ID = ID  
    

提交回复
热议问题