<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Specify new primary key for a relation</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.dbplus-restorepos.html">dbplus_restorepos</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.dbplus-ropen.html">dbplus_ropen</a></div> <div class="up"><a href="ref.dbplus.html">DB++ Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.dbplus-rkeys" class="refentry"> <div class="refnamediv"> <h1 class="refname">dbplus_rkeys</h1> <p class="verinfo">(PHP 4 <= 4.1.0, PECL dbplus >= 0.9)</p><p class="refpurpose"><span class="refname">dbplus_rkeys</span> — <span class="dc-title">Specify new primary key for a relation</span></p> </div> <div class="refsect1 description" id="refsect1-function.dbplus-rkeys-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><strong>dbplus_rkeys</strong></span> ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$relation</code></span> , <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$domlist</code></span> )</div> <p class="para rdfs-comment"> <span class="function"><strong>dbplus_rkeys()</strong></span> will replace the current primary key for <em><code class="parameter">relation</code></em> with the combination of domains specified by <em><code class="parameter">domlist</code></em>. </p> </div> <div class="refsect1 parameters" id="refsect1-function.dbplus-rkeys-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">relation</code></em></span> <dd> <p class="para"> A relation opened by <span class="function"><a href="function.dbplus-open.html" class="function">dbplus_open()</a></span>. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">domlist</code></em></span> <dd> <p class="para"> A combination of domains. May be passed as a single domain name string or as an array of domain names. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.dbplus-rkeys-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns resource on success or <strong><code>DBPLUS_ERR_UNKNOWN</code></strong> on failure. </p> </div> <div class="refsect1 notes" id="refsect1-function.dbplus-rkeys-notes"> <h3 class="title">Notes</h3> <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function is <em class="emphasis">EXPERIMENTAL</em>. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. </p></div> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.dbplus-restorepos.html">dbplus_restorepos</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.dbplus-ropen.html">dbplus_ropen</a></div> <div class="up"><a href="ref.dbplus.html">DB++ Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>