MySQL Can't Handle Parameters for Stored Procedures

Posted by Takkun on Stack Overflow See other posts from Stack Overflow or by Takkun
Published on 2012-11-04T04:58:25Z Indexed on 2012/11/04 4:59 UTC
Read the original article Hit count: 107

Filed under:
|

I'm trying to make a stored procedure but it doesn't seem to be recognizing the parameters I've given it.

Procedure

create procedure test_pro(IN searchTable VARCHAR(55)) 
begin 
select * from searchTable limit 10; 
end //

Trying to execute

mysql> call test_pro('exampleTable');
ERROR 1146 (42S02): Table 'db.searchTable' doesn't exist

It isn't replacing the searchTable with the parameter that is passed in.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about stored-procedures