当前位置:Gxlcms > 数据库问题 > msql 批量更新

msql 批量更新

时间:2021-07-01 10:21:17 帮助过:28人阅读

 

update table a set a.placeOnPer=‘李琳‘ where placeOnPer in(
select min(placeOnPer) from (
select * from table where placeOnPer=‘李琳‘
) as a group by placeOnPer
);

update table c
set c.location=‘xxx‘ where c.guid in
select max(guid) from ( select a.guid from table a,table2 b where a.infoid=b.guid and b.placeOnPer=‘李琳‘) as a group by guid )

 

msql 批量更新

标签:ceo   set   ace   info   bsp   and   msql   gui   更新   

人气教程排行