I have to try using variable value on MySQL Query Procedure.
But it doesn't work. Here is my procedure:
SET @start=0;
SET @finish=150;
...
DECLARE curs1 CURSOR FOR SELECT tempDate FROM tbl_temp LIMIT @start,@finish;
...
I just want to create query like below
SELECT tempDate FROM tbl_temp LIMIT 0,150;
So guys, what should I do?
Thanks.