Home » SQL & PL/SQL » SQL & PL/SQL » Replace command for restructuring a field?
Replace command for restructuring a field? [message #7555] Fri, 20 June 2003 10:18 Go to next message
Prathab Raj Su
Messages: 2
Registered: June 2003
Junior Member
I have a field here

which is at present in the given format

T0558's-troley#2 fast%

now i need to change it to have only

alphabets,numbers and a -

all other characters(including spaces) should be changed to -.
if the characters are found in the end then it should be removed.

hence in this example it needs to be changed as

T0558-s-troley-2-fast

i tried using the translate but was only able to change the special characters to - ,is there a way to get rid of the last special charater?
thx
prathab
Re: Replace command for restructuring a field? [message #7556 is a reply to message #7555] Fri, 20 June 2003 11:59 Go to previous messageGo to next message
Todd Barry
Messages: 4819
Registered: August 2001
Senior Member
Please do not crosspost. See answer in PL/SQL forum.
Re: Replace command for restructuring a field? [message #7557 is a reply to message #7556] Fri, 20 June 2003 12:24 Go to previous message
Prathab Raj
Messages: 2
Registered: June 2003
Junior Member
yep will do.
thx
Previous Topic: Function help Version Oracle 8.0x
Next Topic: ORA-14551: cannot perform a DML operation inside a query
Goto Forum:
  


Current Time: Tue Apr 16 02:48:49 CDT 2024