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
Subject
Views
Written By
Posted
Using Stored Procedure to search for records
3321
December 06, 2005 10:49PM
2892
December 07, 2005 02:37AM
1883
December 07, 2005 07:39PM
1891
December 07, 2005 07:42PM
4074
December 10, 2005 10:22PM
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.