MySQL表字段的数据迁移

 

update ecm_order_goods, ecm_goods, ecm_order
set ecm_order_goods.eu_point=ecm_goods.eu_point, ecm_order_goods.au_point=ecm_goods.au_point
where ecm_order_goods.goods_id=ecm_goods.goods_id and ecm_order.order_id = ecm_order_goods.order_id and ecm_order.add_time < 1508256000;

 

posted @ 2019-09-28 17:13  剑存古风  阅读(631)  评论(0编辑  收藏  举报