Home Forums SQL Server 2005 Development Data in date column to decrement with one RE: Data in date column to decrement with one
Andrew G
SSChampion
Points: 12809
More actions
July 4, 2013 at 12:04 am
#1629736
Is there any reason you cant just update the whole table in one statement? No problem with the composite primary key that way.
update tablename
set startdate= dateadd(d,-1,startdate)
from tablename