Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: An urgent Sql question help Please !
You could try:
select replace (translate(upper(field1),'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
' '), ' ', '') from table1 where rtrim(translate(field1,'1234567890',' ')) is null
You would have to add in other characters into the alphabet string if you wanted to remove punctuation etc.
DG
MUJAHID HAMID wrote:
> I want to remove characters from a column when I select from it but keep
> numbers from it
> e.g. Table1:
> Mujahid_at_pharmco.demon.co.uk
Received on Sat Oct 24 1998 - 13:58:49 CDT
![]() |
![]() |