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.
| Author |
Topic |
|
sudha12345
Starting Member
47 Posts |
Posted - 2009-06-02 : 10:28:33
|
| I has a column starttime wih dataype datetime and the data is like11/12/2008 11:01:12 AM11/12/2008 11:03:12 AM11/12/2008 11:05:12 AM11/12/2008 11:07:12 AM11/12/2008 11:12:12 AM11/13/2008 11:15:12 AMwith the date 11/12/2008 and different times there are nearly 100 rowsi has to update the date with 11/18/2008 with out changing the timethe result is11/18/2008 11:01:12 AM11/18/2008 11:03:12 AM11/18/2008 11:05:12 AM11/18/2008 11:07:12 AM11/18/2008 11:12:12 AMto acheive this how can we do thisSudhakar |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2009-06-02 : 10:34:21
|
update tableset starttime=dateadd(day,6,starttime)where ... No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
|
|
|