Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Remove Text part

Author  Topic 

mujeebsql
Starting Member

1 Post

Posted - 2012-06-28 : 14:09:43
How to remove some specific part of the string at the begining?

For example: i have a data in domaintable "www.domain.com",and i want to write a query to get the output with removed "www." from the beginning of "www.domain.com", so the reusult should be "domain.com".

Please suggest me...Thank You...

robvolk
Most Valuable Yak

15732 Posts

Posted - 2012-06-28 : 14:13:26
SELECT REPLACE(domain,'www.','') FROM domaintable
Go to Top of Page
   

- Advertisement -