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 2000 Forums
 SQL Server Development (2000)
 Changing characters in a string

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-03-19 : 11:20:47
Janie writes "I have a string of characters that all begin with a zero and I need to change just the first character zero to a three. Can you help me on this?
thanks soooooooooooooo much."

rrb
SQLTeam Poet Laureate

1479 Posts

Posted - 2002-03-19 : 16:57:15
have a look at BOL for replace and substring

select ('3' + substring(COLUMN,2,len(COLUMN)-1))
from TABLE

--
I hope that when I die someone will say of me "That guy sure owed me a lot of money"
Go to Top of Page
   

- Advertisement -