Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: for loop mit select - Firebird -> Oracle
Werner Hofmann wrote:
> DA Morgan wrote: > >
> > > Hallo Morgan, > > don't worry about the sense of my example. The real code is doing some > important things, but I wanted to know, how to make such a firebird-loop > with oracle. And how I can access the values of one row in the loop body. > > Can you show me please how to access the values in rec? > Is rec.TITLE correct? > > Excuse me for my stupid questions, but I am new in oracle, and I am stil > waiting for my PL/SQL-Book. I think oracle is not intuitive, in no way, its > an academic solution for db management. Very complex in the ideas and > solutions behind them.
Understanding English is not your first language ... Firebird is a product. What you want is a FOR loop.
rec.TITLE is correct.
Go to http://www.psoug.org
click on Morgan's Library
click on Cursors & Cursor Loops for multiple examples
But if in Oracle 9i or above you should not be writing cursor FOR loops except in very specific conditions. The general solution is "bulk binding" ... also with examples in the library.
HTH
-- Daniel A. Morgan http://www.psoug.org damorgan_at_x.washington.edu (replace x with u to respond)Received on Tue May 17 2005 - 19:52:44 CDT
![]() |
![]() |