MySQL Forums
Forum List  »  Russian

Ошибка: Undeclared variable.......
Posted by: namco0088 namco0088
Date: September 17, 2010 01:10AM

------------------------------------------------------------------------------------------------
CREATE PROCEDURE selPersons(IN `pAge` INT)
LANGUAGE SQL
NOT DETERMINISTIC
CONTAINS SQL
SQL SECURITY DEFINER
COMMENT ''
BEGIN
declare d_name,d_surname char(20);
set @lmt = 10;
set @q = concat("select name,surname into d_name,d_surname where age=",pAge," limit ?,1");
prepare q from @q;
execute q using @lmt;

END
------------------------------------------------------------------------------------------------
Дает ошибку Undeclared variable d_name....
Скажите пожалуйста
В чем же проблема
и как решить эту проблему
Спасибо за ранее

Options: ReplyQuote


Subject
Views
Written By
Posted
Ошибка: Undeclared variable.......
6403
September 17, 2010 01:10AM


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.