多表关联 update
UPDATE t_invests INNER JOIN t_user_coupons ON t_invests.user_coupon_id = t_user_coupons.id SET t_invests.virtual_product_id = t_user_coupons.virtual_product_id WHERE t_user_coupons.virtual_product_id > 0;
posted on 2016-10-19 11:27 weiguoyuan 阅读(189) 评论(0) 编辑 收藏 举报