MySQL 中两表关联更新数据
通过用户手机号,更新他的添加时间和过期时间,两表关联更改副表内容
UPDATE lzh_expand_money e INNER JOIN lzh_members m ON e.uid = m.id SET e.add_time = unix_timestamp(), e.expired_time = unix_timestamp() + 60 * 60 * 24 * 7 WHERE m.user_phone = '13451805565'
通过用户手机号,更新他的添加时间和过期时间,两表关联更改副表内容
UPDATE lzh_expand_money e INNER JOIN lzh_members m ON e.uid = m.id SET e.add_time = unix_timestamp(), e.expired_time = unix_timestamp() + 60 * 60 * 24 * 7 WHERE m.user_phone = '13451805565'