Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

# Records inserted

Status
Not open for further replies.

smsinger3

Programmer
Oct 5, 2000
192
US
Hello all. I am writing a stored procedure and would like to find out if my INSERT statement actually inserted any rows. Sometimes it doesn't because a subquery doesn't select any records. I would think it would look something like this:
IF <fill in here> = 0 then
..no rows were inserted.
END IF;

What would I put for <fill in here>?

Thanks!

SteveS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top