1. 将name=234记录的period字段值赋给name=123记录的period字段
update table1 set period = (select b.period from (select period from table1 where name='234') b) where name='123';
标签:table1,name,记录,period,字段,123,mysql,234
来源: https://www.cnblogs.com/virgosnail/p/15188097.html