Ошибка: Undeclared variable.......
------------------------------------------------------------------------------------------------
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....
Скажите пожалуйста
В чем же проблема
и как решить эту проблему
Спасибо за ранее
Subject
Views
Written By
Posted
Ошибка: Undeclared variable.......
6557
September 17, 2010 01:10AM
3691
September 17, 2010 01:27AM
3279
September 25, 2010 11:45AM
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.