cyberonics
asked on
Substring Procedure for Long Data Type
Hi all I have a requirement in Oracle 10g to run the substring command on a long datatype in a table. For example this is what I would like to do.
note: col1 is LONG datatype
select substr(col1,1,2000), substr(col1,2001,4001) from table1;
I'd also like to run the trim function if possible from start to end.
I remember someone in my last place had a pl/sql procedure with input/output variables. Can someone help.
Thankss all.
note: col1 is LONG datatype
select substr(col1,1,2000), substr(col1,2001,4001) from table1;
I'd also like to run the trim function if possible from start to end.
I remember someone in my last place had a pl/sql procedure with input/output variables. Can someone help.
Thankss all.
ASKER
Thanks raopsn. Whats the syntax to run it. I can't seem to figure his out.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Excellent solution.
Thanks raopsn
Thanks raopsn
http://www.oracle.com/technology/oramag/code/tips2003/052503.html