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

Home -> Community -> Mailing Lists -> Oracle-L -> pl/sql error

pl/sql error

From: Harvinder Singh <Harvinder.Singh_at_MetraTech.com>
Date: Wed, 06 Jun 2001 15:07:18 -0700
Message-ID: <F001.0031F560.20010606150620@fatcity.com>

Hi,

I am running the code containing following statements

name1 :='t_pv_'||substr(enum,i+1)||'_1';
name2 :='t_pv_'||substr(enum,i+1)||'_2';
name3 :='t_pv_'||substr(enum,i+1)||'_3';
dbms_output.put_line(name1);

dbms_output.put_line(name2);
dbms_output.put_line(name3);
str :='update'||' '||name2||' '||'set id_sess=id_sess+'||temp_id_sess_2; execute immediate str;

it show output og name 1 as
t_pv_ps_cc_credit
_3

and not as t_pv_ps_cc_credit_3 ..
and i feels it failing my execute immediate str statement and getting error: ORA-00911: invalid character
ORA-06512: at line 37

How i can improve this code????

Thanks
Harvinder
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Harvinder Singh
  INET: Harvinder.Singh_at_MetraTech.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Jun 06 2001 - 17:07:18 CDT

Original text of this message

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