Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: pl/sql error
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: Diana_Duncan_at_ttpartners.com
Harvinder Singh <Harvinder.Singh_at_Metr To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> aTech.com> cc: Sent by: Fax to: root_at_fatcity.com 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);
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-LReceived on Wed Jun 06 2001 - 18:58:25 CDT
(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: Diana_Duncan_at_ttpartners.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).
![]() |
![]() |