$result = M("newsarticles")->join("newstypes on newsarticles.articleId=newstypes.typeId")->select();我很想知道这句代码哪里有错,为什么查不出来(两个表关联的)
你确定newsarticles.articleId和newstypes.typeId 又相等的数据?