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 -> Web Question

Web Question

From: <sambavan_at_mail.utexas.edu>
Date: 1998/03/25
Message-ID: <6fcj4d$iff$1@nnrp1.dejanews.com>#1/1

Hi

 I wrote a cursor as follows

       p_last_name is an ARGU...

      CURSOR add_cur IS

         SELECT
           DISTINCT user_id
         FROM
            table_name
          WHERE
              (
              LOWER(lastname) LIKE  NVL(LOWER(p_last_name)||'%','%')
                  OR
               LOWER(lastname) >= LOWER(p_last_name)
               )
             ORDER BY LOWER(lastname);

and used the OPEN add_cur, ... FETCH add_cur INTO v_user_id to retrive the data and used the htp.print(v_user_id) to print as an html text and CLOSED the cursor using the CLOSE add_cur. It got compiled and when I tried to print the information into the html, I was getting an

ORA-17... ...SELECTed... error message

Could any one tell me the cause of this error? The query seems to function OK on the SQL net.

-----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/ Now offering spam-free web-based newsreading Received on Wed Mar 25 1998 - 00:00:00 CST

Original text of this message

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