话不多说,直接上代码:
update kpi_base t1 INNER JOIN (select * from kpi_base as t) t2on t1.id=t2.idset t1.date=SUBSTR(t2.date,1,7)
京公网安备 11010502049817号