簡體   English   中英

如何分別綁定參數Neo4jPHP

[英]How to bind the parameters separately Neo4jPHP

我是Neo4j的新手,正在使用Everyman Neo4jPhp。 我有以下情況

foreach($id as user_id)
{
$query="match (u:user{id:{user_id}})-[r:likes]->(b:product)
        return b";
$result = new Everyman\Neo4j\Cypher\Query($client, $query,array('user_id' => $user_id));
$data= $result->getResultSet(); 
}  

我必須將參數與加載查詢分開單獨綁定。在上面的代碼中,您會找到$result變量,在其中我綁定參數並在一條語句中加載查詢,我希望將參數綁定在單獨的語句中。 就像mysql中准備好的語句一樣。 能做到嗎

這不是neo4jphp的功能。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM