sql service修改日期不改变时间
整个表的时间修改 update CAR_REPLY set sdate = '时间'+substring(convert(char(20),sdate,120),11,9)
修改时间大于当前时间的日期,要改成前一天。 update CAR_REPLY set sdate = '时间'+substring(convert(char(20),sdate,120),11,9) where sdate < '当前的时间'
sql service修改日期不改变时间
整个表的时间修改 update CAR_REPLY set sdate = '时间'+substring(convert(char(20),sdate,120),11,9)
修改时间大于当前时间的日期,要改成前一天。 update CAR_REPLY set sdate = '时间'+substring(convert(char(20),sdate,120),11,9) where sdate < '当前的时间'