SELECT *, count(idWallHasWallPost) as republish FROM admin_pw.wall_has_wallpost
where WallPost_idWallPost in
(select WallPost_idWallPost from wall_has_wallpost where Wall_idWall in
(select Wall_idWall from follower where User_idUser=1))
group by WallPost_idWallPost
having republish>1;
我在mysql中有这个嵌套查询。无论如何都可以访问查询中更高级别的嵌套查询中的值。
我想在最后一次选择中访问 Wall_idWall。我将其选为最低的查询,并希望查看 in 运算符使用了哪个 Wall_idWall。