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)
 urgent Batch update

Author  Topic 

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2007-01-06 : 01:50:56
how to update two different condt in single update.Below logic is not working..Can anybody help?????
update test
(set fday1=29 where pfdate='2006-05-15' and idno='rab4012'),
(set fday1=21 where pfdate='2006-01-01' and idno='rab4013')

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-01-06 : 02:05:54
Using the logic I told you here
http://sqlteam.com/forums/topic.asp?TOPIC_ID=77196

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -