Re: plsql: for loop text variable



On Oct 19, 7:19 am, jimmy <bigtoeh...@xxxxxxxxxxx> wrote:
Hi.  I've posted this in the oracle group but since this place is a
lot busier....

Hi.  I'm trying to use a varchar as the first part of a for loop in
plsql but can't find a way to make it work.  

    listCursor     varchar2(100);
    if x is not NULL then
...

Not that I am a PL/SQL expert, and certainly I am now a
bit rusty, but I see documented and have only used the
form:

if (x is not NULL) then ...

    end loop;

The unbalanced loop block terminator of a code excerpt?

Any suggestions?

Try harder to determine the appropriate group to post queries?

There are many more resources available to the SQL &
PL/SQL programmer than Usenet. Search for a reply by
me for a list of recommended forae and resources on
the 'Net.

I also recommend using a PL/SQL IDE. Even the open-
source or freely-available ones do interactive syntax
flagging.

http://www.orafaq.com/tools

=Brian
.



Relevant Pages

  • Re: Straight SQL always put perform PL/SQL?
    ... end loop; ... CURSOR test_cur IS ... PL/SQL procedure successfully completed. ...
    (comp.databases.oracle.server)
  • Re: Straight SQL always put perform PL/SQL?
    ... end loop; ... create unique index test1_ind on test1; ... PL/SQL procedure successfully completed. ...
    (comp.databases.oracle.server)
  • Re: Interesting Delay After Thread.Abort()
    ... Once you break out of your while loop, then your on your way out of the ... Normal GC will handle any managed resources when they loose their last ... I would break on event first if ... "Doug Thews" wrote in message ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Insert Records into a table
    ... You do not need pl/sql or a bunch of SQL statements. ... I wish it were that simple, but like all books, whenever you start a new ... CREATE TABLE yeardates,year_day integer); ... FOR i IN 1..12 LOOP ...
    (comp.databases.oracle.server)
  • Re: [PATCH 2/12] pci: add pci_bridge_release_unused_res and pci_bus_release_unused_bridge_res -v
    ... that that walks the chain looking for them - which makes it pointless ... to have _another_ outer loop that walks the chain to release them! ... if we roll all the way back up through some system resources we ... a bridge or host bridge may be a good enough heuristic? ...
    (Linux-Kernel)