Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Counter rows in cursor using for loop.

Re: Counter rows in cursor using for loop.

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Tue, 5 Oct 1999 11:08:43 +0100
Message-ID: <939118162.12436.0.nnrp-06.9e984b29@news.demon.co.uk>

Look at the statement the other way round:

      A1.col1 <> b1.col1

OR a1.col2 <> b1.col2
    ...
OR a1.colN <> b1.colN


You want a blank for the first line, and an OR at the start of every other line

--

Jonathan Lewis
Yet another Oracle-related web site: http://www.jlcomp.demon.co.uk

screwbai_at_my-deja.com wrote in message <7tchrd$kcq$1_at_nnrp1.deja.com>...
>I am basically generatting a statement to compare two tables column by
>column. The statement to compare two tables looks like this.
>
>if
>A.col1<>B.col1 OR
>A.co2<>B.col2 OR
>...
>A.coN<>B.colN
>THEN
>...
>I am generating the A.col1<>..using a cursor.
Received on Tue Oct 05 1999 - 05:08:43 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US