I only want to update 1 row (id) and only IF the status is == to stat
UPDATE link_list SET status=0 WHERE id=@id AND status=@stat;
Now i want to delete all rows but ONLY if the above was affected, how do i change the below to only delete if the above was affected?
DELETE link_list WHERE linkId=@id;