array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.mysql-xdevapi-expression.php', 1 => 'expression', ), 'up' => array ( 0 => 'ref.mysql-xdevapi.php', 1 => 'Mysql_xdevapi 函数', ), 'prev' => array ( 0 => 'ref.mysql-xdevapi.php', 1 => 'Mysql_xdevapi 函数', ), 'next' => array ( 0 => 'function.mysql-xdevapi-getsession.php', 1 => 'getSession', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mysql_xdevapi/functions/mysql-xdevapi.expression.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(No version information available, might only be in Git)
expression — Bind prepared statement variables as parameters
expression
示例 #1 mysql_xdevapi\Expression() example
<?php
$expression = mysql_xdevapi\Expression("[age,job]");
$res = $coll->find("age > 30")->fields($expression)->limit(3)->execute();
$data = $res->fetchAll();
print_r($data);
?>
以上示例的输出类似于:
<?php