日期:2014-05-16 浏览次数:20707 次
UPDATE weekreport_alluser a SET a.dayadd = (SELECT b.weekadd FROM weekreport_alluser b WHERE SUBSTR(a.weekname,3,4) = SUBSTR(b.weekname,3,4)+2) WHERE a.weekname = 'WK13' ;
UPDATE weekreport_alluser a SET a.dayadd = (SELECT b.weekadd FROM (SELECT weekname,weekadd FROM weekreport_alluser) b WHERE SUBSTR(a.weekname,3,4) = SUBSTR(b.weekname,3,4)+2) WHERE a.weekname = 'WK13' ;