MySQL Forums
Forum List  »  Russian

Проблема с LIMIT
Posted by: namco0088 namco0088
Date: September 16, 2010 11:57PM

Здраствуйте ......
Помогите решить одну проблемку....
У меня такой код есть
-----------------------------------
set @i = 0;
while @i < 10 do
select name,surname
from tbl_persons
where age > 20
limit @i,1;
set @i = @i + 1;
end while;
-----------------------------------
Дает ошибку:
You have an error in your SQL syntax...near @i,1;
set @i = @i + 1;
end while;

Так в чем проблема и как решить.....

Options: ReplyQuote


Subject
Views
Written By
Posted
Проблема с LIMIT
4370
September 16, 2010 11:57PM


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.