<!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>Lists tables and the privileges associated with each table</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.odbc-statistics.html">odbc_statistics</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.odbc-tables.html">odbc_tables</a></div> <div class="up"><a href="ref.uodbc.html">ODBC Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.odbc-tableprivileges" class="refentry"> <div class="refnamediv"> <h1 class="refname">odbc_tableprivileges</h1> <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">odbc_tableprivileges</span> — <span class="dc-title">Lists tables and the privileges associated with each table</span></p> </div> <div class="refsect1 description" id="refsect1-function.odbc-tableprivileges-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">resource</span> <span class="methodname"><strong>odbc_tableprivileges</strong></span> ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$connection_id</code></span> , <span class="methodparam"><span class="type">string</span> <code class="parameter">$qualifier</code></span> , <span class="methodparam"><span class="type">string</span> <code class="parameter">$owner</code></span> , <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span> )</div> <p class="para rdfs-comment"> Lists tables in the requested range and the privileges associated with each table. </p> </div> <div class="refsect1 parameters" id="refsect1-function.odbc-tableprivileges-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">connection_id</code></em></span> <dd> <p class="para">The ODBC connection identifier, see <span class="function"><a href="function.odbc-connect.html" class="function">odbc_connect()</a></span> for details.</p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">qualifier</code></em></span> <dd> <p class="para"> The qualifier. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">owner</code></em></span> <dd> <p class="para"> The owner. Accepts the following search patterns: ('%' to match zero or more characters and '_' to match a single character) </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">name</code></em></span> <dd> <p class="para"> The name. Accepts the following search patterns: ('%' to match zero or more characters and '_' to match a single character) </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.odbc-tableprivileges-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> An ODBC result identifier or <strong><code>FALSE</code></strong> on failure. </p> <p class="para"> The result set has the following columns: <ul class="itemizedlist"> <li class="listitem"><span class="simpara">TABLE_QUALIFIER</span></li> <li class="listitem"><span class="simpara">TABLE_OWNER</span></li> <li class="listitem"><span class="simpara">TABLE_NAME</span></li> <li class="listitem"><span class="simpara">GRANTOR</span></li> <li class="listitem"><span class="simpara">GRANTEE</span></li> <li class="listitem"><span class="simpara">PRIVILEGE</span></li> <li class="listitem"><span class="simpara">IS_GRANTABLE</span></li> </ul> </p> <p class="simpara"> The result set is ordered by TABLE_QUALIFIER, TABLE_OWNER and TABLE_NAME. </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.odbc-statistics.html">odbc_statistics</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.odbc-tables.html">odbc_tables</a></div> <div class="up"><a href="ref.uodbc.html">ODBC Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>