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
 Transact-SQL (2000)
 Change pos to neg and vice-versa

Author  Topic 

SimonG
Starting Member

15 Posts

Posted - 2010-04-21 : 07:41:10
Hi all,

Is it possible to iterate through a table using t-sql and change the sign of any number?

Appreciate your advice.

Regards,

Simon

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2010-04-21 : 07:48:54
[code]
update atable
set number = -number
[/code]


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -