Reputation: 2478
Is it possible to see if a query within a stored procedure was successful or not? For example, I want to know if the following query was successful:
if (UPDATE CurrentState SET buyer = bid
WHERE ID = company_id_var
AND buyer < bid;)
then
//Variable was updated, do something
else
//Variable was not updated, do something else
end if
I`m trying to avoid to use a SELECT-query to check if it has been set to the the new value.
Thanks for any help!
Upvotes: 1
Views: 3425