MySQL Forums
Forum List  »  Newbie

Capturing rows selected
Posted by: Mary Cunningham
Date: August 20, 2004 10:07AM

Hi!
I am trying to write a SQL statement that will select according to a specific criteria and if nothing is found insert a record.

I have tried the SQL_CALC_FOUND_ROWS and then select FOUND_ROWS(). I get the right results, but I don't know how to do anything with those results. I tried putting the FOUND_ROWS() into an IF statement so if it is equal to zero then insert a row, but that failed also.

Thanks in advance for your help!!
Mary

Options: ReplyQuote


Subject
Written By
Posted
Capturing rows selected
August 20, 2004 10:07AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.