|
|
|
|
|
Re: Replace multiple value in single column. [message #510796 is a reply to message #510793] |
Tue, 07 June 2011 15:19   |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
dsharma wrote on Tue, 07 June 2011 15:53the procedure was created successfully but it didnot run.
SQL> create procedure test_p (out a text, out b text,in p1 text, in p2 text)
2 select replace(replace(text_data,'p1','a'),'p2','b') from test_tb where id=10;
3 /
Warning: Procedure created with compilation errors.
SQL> show err
Errors for PROCEDURE TEST_P:
LINE/COL ERROR
-------- -----------------------------------------------------------------
1/25 PLS-00103: Encountered the symbol "TEXT" when expecting one of
the following:
:= . ) , @ % default character
|
|
|
|
|
|
|
|