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 |
arunsqladmin
Yak Posting Veteran
74 Posts |
Posted - 2008-08-07 : 01:08:31
|
i have a table which has a column of datetime data type has 61 records in it,i want to change the month from august to july by running a query. |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2008-08-07 : 01:12:35
|
[code]update tset datecol = dateadd(month, -1, datecol)from yourtable twhere month(datecol) = 8[/code] KH[spoiler]Time is always against us[/spoiler] |
 |
|
arunsqladmin
Yak Posting Veteran
74 Posts |
Posted - 2008-08-07 : 01:57:30
|
thanks, i got it ,, |
 |
|
|
|
|