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)
 trying to modify some column data in some rows

Author  Topic 

gln
Starting Member

2 Posts

Posted - 2005-12-31 : 12:57:14
Trying to change some of the rows in a table specifically one column.
column type is varchar
ex. of data
current desired
$345,434.0 345434.0 (stripping out of $ & commas)
435.0 leave as is
general txt leave as is

having trouble updating data in table
tried using temp table, but update command make it so it won't see table

ex. piece of code
update currency_conversion
set currency_varchar = cast (cast (currency_varchar as money)as varchar)
select * from currency_conversion
where substring (currency_varchar from 1 for 1) = '$' ;

sql 2000
trying to do from query analyzer

thanks
glnsk8ter@yahoo.com


thanks
Glenn

cshah1
Constraint Violating Yak Guru

347 Posts

Posted - 2005-12-31 : 13:28:02
cross post

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=59707
Go to Top of Page
   

- Advertisement -