MySQL Forums
Forum List  »  Stored Procedures

Stored Procedure - SQL Parameters
Posted by: Peter Kaye
Date: August 08, 2014 11:36AM

I have a stored procedure..
CREATE PROCEDURE `sp_test1` (IN EMP_ID INT)
BEGIN
SELECT CompanyName
FROM tblXeroContacts
WHERE ContactID = EMP_ID;
END
... which seems to run very slowly.
Is this the best way to pass parameters to an SQL statement in a stored procedure ? Thanks.

Options: ReplyQuote


Subject
Views
Written By
Posted
Stored Procedure - SQL Parameters
1817
August 08, 2014 11: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.