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
 Transact-SQL (2005)
 SQLServer-How to UpdaTe Multiple rows?

Author  Topic 

Arny
Starting Member

2 Posts

Posted - 2009-09-10 : 02:39:21
Hi there,

I am trying to Update multiple rows according to one criteria (for example Employee Name),what is the best way to do it?

in a loop?by using Case? Please write you code

Thanks in advance

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-09-10 : 02:59:04
update table
set column=value
where Employee_Name = 'Yak Hunter'



No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -