Re: [firebird-support] Advantages of using CURSOR

2013-12-16 Thread W O
Thank you very much Paul. Greetings. Walter. On Mon, Dec 16, 2013 at 11:40 PM, paul wrote: > > > > Hallo Walter, > > > > Then, no makes sense to declare a cursor just for retrieving rows? > > No, for just retrieving rows FOR SELECT is easier and safer. > > If you want to perform positioned u

Re: [firebird-support] Advantages of using CURSOR

2013-12-16 Thread paul
Hallo Walter, > Then, no makes sense to declare a cursor just for retrieving rows? No, for just retrieving rows FOR SELECT is easier and safer. If you want to perform positioned updates or deletes, use FOR SELECT ... AS CURSOR. DECLARE cursor (with the need for OPEN, FETCH, CLOSE, as well as c

Re: [firebird-support] Advantages of using CURSOR

2013-12-16 Thread W O
Ok, thank you Mark. Then, no makes sense to declare a cursor just for retrieving rows? Where I can see an example of WHERE CURRENT OF clause? Greetings. Walter. On Mon, Dec 16, 2013 at 2:04 PM, Mark Rotteveel wrote: > > > On 15-12-2013 20:25, W O wrote: > > If in a stored procedure I need t

Re: [firebird-support] Advantages of using CURSOR

2013-12-16 Thread Mark Rotteveel
On 15-12-2013 20:25, W O wrote: > If in a stored procedure I need to extract data from a table I can use a > FOR SELECT or a DECLARE VARIABLE MyVar CURSOR FOR ( ) statement. > > Which would be the advantage of using CURSOR FOR? > > In which cases it is better than a FOR SELECT? For one thing,

[firebird-support] Advantages of using CURSOR

2013-12-15 Thread W O
Hello everybody If in a stored procedure I need to extract data from a table I can use a FOR SELECT or a DECLARE VARIABLE MyVar CURSOR FOR ( ) statement. Which would be the advantage of using CURSOR FOR? In which cases it is better than a FOR SELECT? Greetings. Walter.