0

如何使用 PHPjoin和2 个不同的 MongoDB 集合?echo

在 MYSQL 中(使用 PHP)

$query=mysql_query("SELECT U.username, P.post FROM users U, posts P WHERE u.user_id=p.user_id_fk") or die(mysql_error());
while($result=mysql_fetch_array($query)){
 echo $result['username'];
 echo $result['post'];
}

在 MongoDB 中(使用 PHP)???

4

0 回答 0