Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

replacing characters in a field 1

Status
Not open for further replies.

link9

Programmer
Nov 28, 2000
3,387
US
Hello all --

I have a field in my database, which holds varchar data in it in the format:

2001-001

several thousand rows, and I need a command that will go through and replace all the -'s with .'s such as

2001.001

so that I can then convert the data type to float...

what is my syntax?

the column name is projectNum, btw.

:) thx
Paul Prewett
 
replace(ProjectNum, '-', '.') Robert Bradley
teaser.jpg

 
Actually, I was hoping for a SQL statement that would do it... if there is one.

thx
paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top