1 删除整张表的数据,并还原自增长值TRUNCATE TABLE TbWeixinActivity 2 3张表左连接select a.ID,c.Name,b.nickname,a.CreateDate from TbUserJoin as a left join tbWX_User as b on a.WeChatID=b.openid left join TbUnitActivity as c on a.ActivityID=c.ID where a.IsValid=1 order by a.