<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.mysql-xdevapi-tableupdate.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'mysql-xdevapi-tableupdate.where.php',
    1 => 'TableUpdate::where',
    2 => 'Set search filter',
  ),
  'up' => 
  array (
    0 => 'class.mysql-xdevapi-tableupdate.php',
    1 => 'mysql_xdevapi\\TableUpdate',
  ),
  'prev' => 
  array (
    0 => 'mysql-xdevapi-tableupdate.set.php',
    1 => 'TableUpdate::set',
  ),
  'next' => 
  array (
    0 => 'class.mysql-xdevapi-warning.php',
    1 => 'mysql_xdevapi\\Warning',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mysql_xdevapi/mysql_xdevapi/tableupdate/where.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mysql-xdevapi-tableupdate.where" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">TableUpdate::where</h1>
  <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">TableUpdate::where</span> &mdash; <span class="dc-title">Set search filter</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mysql-xdevapi-tableupdate.where-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>mysql_xdevapi\TableUpdate::where</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$where_expr</code></span>): <span class="type"><a href="class.mysql-xdevapi-tableupdate.php" class="type mysql_xdevapi\TableUpdate">mysql_xdevapi\TableUpdate</a></span></div>

  <p class="para rdfs-comment">
   Set the search condition to filter.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-mysql-xdevapi-tableupdate.where-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt><code class="parameter">where_expr</code></dt>
    <dd>
     <p class="para">
      The search condition to filter documents or records.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mysql-xdevapi-tableupdate.where-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   A TableUpdate object.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-mysql-xdevapi-tableupdate.where-examples">
  <h3 class="title">示例</h3>
  <div class="example" id="example-1">
   <p><strong>示例 #1 <span class="function"><strong>mysql_xdevapi\TableUpdate::where()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$session </span><span style="color: #007700">= </span><span style="color: #0000BB">mysql_xdevapi\getSession</span><span style="color: #007700">(</span><span style="color: #DD0000">"mysqlx://user:password@localhost"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$schema </span><span style="color: #007700">= </span><span style="color: #0000BB">$session</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getSchema</span><span style="color: #007700">(</span><span style="color: #DD0000">"addressbook"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$table  </span><span style="color: #007700">= </span><span style="color: #0000BB">$schema</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getTable</span><span style="color: #007700">(</span><span style="color: #DD0000">"names"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$res </span><span style="color: #007700">= </span><span style="color: #0000BB">$table</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">update</span><span style="color: #007700">()<br />  -&gt;</span><span style="color: #0000BB">set</span><span style="color: #007700">(</span><span style="color: #DD0000">'level'</span><span style="color: #007700">, </span><span style="color: #0000BB">3</span><span style="color: #007700">)<br />  -&gt;</span><span style="color: #0000BB">where</span><span style="color: #007700">(</span><span style="color: #DD0000">'age &gt; 15 and age &lt; 22'</span><span style="color: #007700">)<br />  -&gt;</span><span style="color: #0000BB">limit</span><span style="color: #007700">(</span><span style="color: #0000BB">4</span><span style="color: #007700">)<br />  -&gt;</span><span style="color: #0000BB">orderby</span><span style="color: #007700">([</span><span style="color: #DD0000">'age asc'</span><span style="color: #007700">,</span><span style="color: #DD0000">'name desc'</span><span style="color: #007700">])<br />  -&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
 </div>


</div><?php manual_footer($setup); ?>