话不多说,直接上代码:
update
kpi_base t1 INNER JOIN (select * from kpi_base as t) t2
on t1.id=t2.id
set t1.date=SUBSTR(t2.date,1,7)
话不多说,直接上代码:
update
kpi_base t1 INNER JOIN (select * from kpi_base as t) t2
on t1.id=t2.id
set t1.date=SUBSTR(t2.date,1,7)