MySQL Forums
Forum List  »  Stored Procedures

Re: Please Help Need Search Stored Proc
Posted by: John Gilmour
Date: March 18, 2009 09:36AM

Hi Peter, Thanks again. I know you're probably getting annoyed with my questions by now...I am a newbie :) but thanks for all your help. A few questions.

- Where do I put the "SELECT @sql" statement into the sproc? I tried running that statement by itself and returned no results.

-More importantly, you have in your WHERE statement "WHERE 1=1;" What exactly does that mean? DOes that mean it's returning true? I feel like we're getting really close, the error message I get from my PHP now is "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0' at line 1"

There is no 0 at line 1...please a little more help and please let me know if you need any additional information...thanks!! :)

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Please Help Need Search Stored Proc
1907
March 18, 2009 09:36AM


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.