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 -> Dynamic SQL with DBMS_SQL Package

Dynamic SQL with DBMS_SQL Package

From: <mmellin_at_my-dejanews.com>
Date: Fri, 30 Oct 1998 15:34:01 GMT
Message-ID: <71cm99$pns$1@nnrp1.dejanews.com>


I am trying to create a procedure using Dynamic SQL. I havn'e used this package and need info. I am not sure how to build the string. Here is an example of the code and the error message. It appears that everything after the || tablename_in || is being ignored. Could someone please help.

CREATE OR REPLACE PROCEDURE RESPONSENOW.test

(tablename_in      IN VARCHAR2,
 password_in       IN VARCHAR2)

 is
-- This procedure will select a record of a table. ID of type NUMBER, -- - NAME of type VARCHAR2(30),-- - BIRTHDATE of type DATE.
  select_cursor      INTEGER;
  executed           INTEGER;

  BEGIN Error messages
ORA-00971: missing SET keyword
ORA-06512: at "SYS.DBMS_SYS_SQL", line 239
ORA-06512: at "SYS.DBMS_SQL", line 32
ORA-06512: at "RESPONSENOW.X#X$TEST", line 13
ORA-06512: at line 1



-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    
Received on Fri Oct 30 1998 - 09:34:01 CST

Original text of this message

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