MySQL Forums
Forum List  »  Stored Procedures

Using Stored Procedure to search for records
Posted by: Aldrick
Date: December 06, 2005 10:49PM

Hi all,

Need some advice here. I am using MySQL Stored Procedures to do a search query. It seems that the query statement that I used is not proper, can advice on how to use it effectively?

CREATE PROCEDURE mysql_biosys.search_site(site_Name_Searched VARCHAR(64))
BEGIN
SELECT site_Name
FROM site
WHERE site_Name LIKE '%site_Name_Searched%'
AND site_Id != 1;
END;
|

Thanks.

regards,
Aldrick

Options: ReplyQuote


Subject
Views
Written By
Posted
Using Stored Procedure to search for records
3321
December 06, 2005 10:49PM


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.