Home » RDBMS Server » Server Administration » SQL
SQL [message #373462] Wed, 18 April 2001 10:09 Go to next message
aish74
Messages: 19
Registered: March 2001
Junior Member
Hi,

I have a col SSN in a table which has data in the format
999-99-9999 I want to remove the "-" from it .So the data should look like 999999999
How do I do that .
Any help is apprecitaed.

Thanks,
Aish
Re: SQL [message #373467 is a reply to message #373462] Wed, 18 April 2001 11:47 Go to previous messageGo to next message
Raj.C
Messages: 7
Registered: April 2001
Junior Member
Answer to your question.

SQL> select replace('999-99-9999','-') SSN from dual;

SSN
---------
999999999

-Thanks
-Raj
Re: SQL [message #373469 is a reply to message #373462] Wed, 18 April 2001 11:50 Go to previous message
aish
Messages: 44
Registered: March 2001
Member
Thanks Raj.
Previous Topic: Re: how to delet a view from database
Next Topic: Re: how to delet a view from database
Goto Forum:
  


Current Time: Tue Jul 02 02:35:18 CDT 2024