This will return single value which is updated
Inside can return multiple value also
You want the OUTPUT clause
UPDATE data SET count = count + 1
OUTPUT INSERTED.count
WHERE Id = @Id
Inside can return multiple value also
You want the OUTPUT clause
UPDATE data SET count = count + 1
OUTPUT INSERTED.count
WHERE Id = @Id
No comments:
Post a Comment