Free source code programming in C#, VB.Net, Java, SQL
UPDATE Person SET Age = 31 WHERE Id = 1 IF @@ROWCOUNT = 0 PRINT 'No rows were updated';