###已上线已执行### #alter table wx_coupon_password add column price int(11) not null default 0 comment '面额'; #update wx_coupon_password cp inner join wx_coupon_89 c on cp.coupon_id = c.id set cp.price = c.price where cp.price = 0 and c.price > 0 ;