ON tp_account_log.user_id=tp_users.user_id where tp_users.user_id is null or tp_users.user_id ='';
变更记录和会员边左链接查询,这是返回变更记录表所有,然后感觉where条件写会员表的user_id为空或者是null的,就能查询出来了。