Harvinder,
You must have a carriage return at the end of the enum variable. Try
rtrim, like this:
name2 :='t_pv_'||substr(rtrim(enum,chr(10),i+1)||'_2';
Diana Duncan
TITAN Technology Partners
One Copley Parkway, Ste 540
Morrisville, NC 27560
VM: 919.466.7337 x 316
F: 919.466.7427
E: [EMAIL PROTECTED]
Harvinder Singh
<Harvinder.Singh@Metr To: Multiple recipients of list
ORACLE-L <[EMAIL PROTECTED]>
aTech.com> cc:
Sent by: Fax to:
[EMAIL PROTECTED] Subject: pl/sql error
06/06/2001 07:06 PM
Please respond to
ORACLE-L
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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
INET: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).