UPDATE h_owner SET age = timestampdiff(year, substring((select id_card from (select * from h_owner) as a) , 7, 8), now())
where age in (select age from (select * from h_owner) as b);
MySQL更新全部年龄的sql
猜你喜欢
转载自blog.csdn.net/m0_48114733/article/details/130561267
今日推荐
周排行