update T_Sys_Partner set EXPIREDATE = convert(nvarchar,year(EXPIREDATE))+'-'+'6' + right(convert(nvarchar(19),EXPIREDATE ,120),12) WHERE MONTH(ExpireDate) = 4
update T_Sys_Partner set EXPIREDATE = convert(nvarchar,year(EXPIREDATE))+'-'+'6' + right(convert(nvarchar(19),EXPIREDATE ,120),12) WHERE MONTH(ExpireDate) = 4
转载于:https://www.cnblogs.com/dekevin/p/4503109.html