mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-10-11 08:53:20 +08:00
v0.0.2
This commit is contained in:
@@ -1,186 +1,186 @@
|
||||
<!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>Returns a result set listing the tables and associated privileges in a database</title>
|
||||
</head>
|
||||
<body class="docs"><div id="layout">
|
||||
<div id="layout-content"><div id="function.db2-table-privileges" class="refentry">
|
||||
<div class="refnamediv">
|
||||
<h1 class="refname">db2_table_privileges</h1>
|
||||
<p class="verinfo">(PECL ibm_db2 >= 1.0.0)</p><p class="refpurpose"><span class="refname">db2_table_privileges</span> — <span class="dc-title">
|
||||
Returns a result set listing the tables and associated privileges in a database
|
||||
</span></p>
|
||||
|
||||
</div>
|
||||
<div class="refsect1 description" id="refsect1-function.db2-table-privileges-description">
|
||||
<h3 class="title">说明</h3>
|
||||
<div class="methodsynopsis dc-description">
|
||||
<span class="methodname"><strong>db2_table_privileges</strong></span>
|
||||
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$connection</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">$schema</code></span>
|
||||
[, <span class="methodparam"><span class="type">string</span> <code class="parameter">$table_name</code></span>
|
||||
]]] ) : <span class="type">resource</span></div>
|
||||
|
||||
|
||||
<p class="para rdfs-comment">
|
||||
Returns a result set listing the tables and associated privileges in a
|
||||
database.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="refsect1 parameters" id="refsect1-function.db2-table-privileges-parameters">
|
||||
<h3 class="title">参数</h3>
|
||||
<p class="para">
|
||||
<dl>
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">connection</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
A valid connection to an IBM DB2, Cloudscape, or Apache Derby database.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">qualifier</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
A qualifier for DB2 databases running on OS/390 or z/OS servers. For
|
||||
other databases, pass <strong><code>NULL</code></strong> or an empty string.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">schema</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The schema which contains the tables. This parameter accepts a
|
||||
search pattern containing <em>_</em> and <em>%</em>
|
||||
as wildcards.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">table_name</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The name of the table. This parameter accepts a search pattern
|
||||
containing <em>_</em> and <em>%</em> as wildcards.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="refsect1 returnvalues" id="refsect1-function.db2-table-privileges-returnvalues">
|
||||
<h3 class="title">返回值</h3>
|
||||
<p class="para">
|
||||
Returns a statement resource with a result set containing rows describing
|
||||
the privileges for the tables that match the specified parameters. The rows
|
||||
are composed of the following columns:
|
||||
<table class="doctable informaltable">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Column name</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
|
||||
<tbody class="tbody">
|
||||
<tr>
|
||||
<td>TABLE_CAT</td>
|
||||
<td>The catalog that contains the table. The value is <strong><code>NULL</code></strong> if
|
||||
this table does not have catalogs.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>TABLE_SCHEM</td>
|
||||
<td>Name of the schema that contains the table.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>TABLE_NAME</td>
|
||||
<td>Name of the table.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>GRANTOR</td>
|
||||
<td>Authorization ID of the user who granted the privilege.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>GRANTEE</td>
|
||||
<td>Authorization ID of the user to whom the privilege was
|
||||
granted.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>PRIVILEGE</td>
|
||||
<td>
|
||||
The privilege that has been granted. This can be one of ALTER,
|
||||
CONTROL, DELETE, INDEX, INSERT, REFERENCES, SELECT, or UPDATE.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>IS_GRANTABLE</td>
|
||||
<td>
|
||||
A string value of "YES" or "NO" indicating whether the grantee
|
||||
can grant the privilege to other users.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="refsect1 seealso" id="refsect1-function.db2-table-privileges-seealso">
|
||||
<h3 class="title">参见</h3>
|
||||
<p class="para">
|
||||
<ul class="simplelist">
|
||||
<li class="member"><span class="function"><a href="db2_column_privileges.html" class="function" rel="rdfs-seeAlso">db2_column_privileges()</a> - Returns a result set listing the columns and associated privileges for a table</span></li>
|
||||
<li class="member"><span class="function"><a href="db2_columns.html" class="function" rel="rdfs-seeAlso">db2_columns()</a> - Returns a result set listing the columns and associated metadata for a table</span></li>
|
||||
<li class="member"><span class="function"><a href="db2_foreign_keys.html" class="function" rel="rdfs-seeAlso">db2_foreign_keys()</a> - Returns a result set listing the foreign keys for a table</span></li>
|
||||
<li class="member"><span class="function"><a href="db2_primary_keys.html" class="function" rel="rdfs-seeAlso">db2_primary_keys()</a> - Returns a result set listing primary keys for a table</span></li>
|
||||
<li class="member"><span class="function"><a href="db2_procedure_columns.html" class="function" rel="rdfs-seeAlso">db2_procedure_columns()</a> - Returns a result set listing stored procedure parameters</span></li>
|
||||
<li class="member"><span class="function"><a href="db2_procedures.html" class="function" rel="rdfs-seeAlso">db2_procedures()</a> - Returns a result set listing the stored procedures registered in a database</span></li>
|
||||
<li class="member"><span class="function"><a href="db2_special_columns.html" class="function" rel="rdfs-seeAlso">db2_special_columns()</a> - Returns a result set listing the unique row identifier columns for a table</span></li>
|
||||
<li class="member"><span class="function"><a href="db2_statistics.html" class="function" rel="rdfs-seeAlso">db2_statistics()</a> - Returns a result set listing the index and statistics for a table</span></li>
|
||||
<li class="member"><span class="function"><a href="db2_tables.html" class="function" rel="rdfs-seeAlso">db2_tables()</a> - Returns a result set listing the tables and associated metadata in a database</span></li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!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>Returns a result set listing the tables and associated privileges in a database</title>
|
||||
</head>
|
||||
<body class="docs"><div id="layout">
|
||||
<div id="layout-content"><div id="function.db2-table-privileges" class="refentry">
|
||||
<div class="refnamediv">
|
||||
<h1 class="refname">db2_table_privileges</h1>
|
||||
<p class="verinfo">(PECL ibm_db2 >= 1.0.0)</p><p class="refpurpose"><span class="refname">db2_table_privileges</span> — <span class="dc-title">
|
||||
Returns a result set listing the tables and associated privileges in a database
|
||||
</span></p>
|
||||
|
||||
</div>
|
||||
<div class="refsect1 description" id="refsect1-function.db2-table-privileges-description">
|
||||
<h3 class="title">说明</h3>
|
||||
<div class="methodsynopsis dc-description">
|
||||
<span class="methodname"><strong>db2_table_privileges</strong></span>
|
||||
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$connection</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">$schema</code></span>
|
||||
[, <span class="methodparam"><span class="type">string</span> <code class="parameter">$table_name</code></span>
|
||||
]]] ) : <span class="type">resource</span></div>
|
||||
|
||||
|
||||
<p class="para rdfs-comment">
|
||||
Returns a result set listing the tables and associated privileges in a
|
||||
database.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="refsect1 parameters" id="refsect1-function.db2-table-privileges-parameters">
|
||||
<h3 class="title">参数</h3>
|
||||
<p class="para">
|
||||
<dl>
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">connection</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
A valid connection to an IBM DB2, Cloudscape, or Apache Derby database.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">qualifier</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
A qualifier for DB2 databases running on OS/390 or z/OS servers. For
|
||||
other databases, pass <strong><code>NULL</code></strong> or an empty string.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">schema</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The schema which contains the tables. This parameter accepts a
|
||||
search pattern containing <em>_</em> and <em>%</em>
|
||||
as wildcards.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">table_name</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The name of the table. This parameter accepts a search pattern
|
||||
containing <em>_</em> and <em>%</em> as wildcards.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="refsect1 returnvalues" id="refsect1-function.db2-table-privileges-returnvalues">
|
||||
<h3 class="title">返回值</h3>
|
||||
<p class="para">
|
||||
Returns a statement resource with a result set containing rows describing
|
||||
the privileges for the tables that match the specified parameters. The rows
|
||||
are composed of the following columns:
|
||||
<table class="doctable informaltable">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Column name</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
|
||||
<tbody class="tbody">
|
||||
<tr>
|
||||
<td>TABLE_CAT</td>
|
||||
<td>The catalog that contains the table. The value is <strong><code>NULL</code></strong> if
|
||||
this table does not have catalogs.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>TABLE_SCHEM</td>
|
||||
<td>Name of the schema that contains the table.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>TABLE_NAME</td>
|
||||
<td>Name of the table.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>GRANTOR</td>
|
||||
<td>Authorization ID of the user who granted the privilege.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>GRANTEE</td>
|
||||
<td>Authorization ID of the user to whom the privilege was
|
||||
granted.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>PRIVILEGE</td>
|
||||
<td>
|
||||
The privilege that has been granted. This can be one of ALTER,
|
||||
CONTROL, DELETE, INDEX, INSERT, REFERENCES, SELECT, or UPDATE.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>IS_GRANTABLE</td>
|
||||
<td>
|
||||
A string value of "YES" or "NO" indicating whether the grantee
|
||||
can grant the privilege to other users.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="refsect1 seealso" id="refsect1-function.db2-table-privileges-seealso">
|
||||
<h3 class="title">参见</h3>
|
||||
<p class="para">
|
||||
<ul class="simplelist">
|
||||
<li class="member"><span class="function"><a href="db2_column_privileges.html" class="function" rel="rdfs-seeAlso">db2_column_privileges()</a> - Returns a result set listing the columns and associated privileges for a table</span></li>
|
||||
<li class="member"><span class="function"><a href="db2_columns.html" class="function" rel="rdfs-seeAlso">db2_columns()</a> - Returns a result set listing the columns and associated metadata for a table</span></li>
|
||||
<li class="member"><span class="function"><a href="db2_foreign_keys.html" class="function" rel="rdfs-seeAlso">db2_foreign_keys()</a> - Returns a result set listing the foreign keys for a table</span></li>
|
||||
<li class="member"><span class="function"><a href="db2_primary_keys.html" class="function" rel="rdfs-seeAlso">db2_primary_keys()</a> - Returns a result set listing primary keys for a table</span></li>
|
||||
<li class="member"><span class="function"><a href="db2_procedure_columns.html" class="function" rel="rdfs-seeAlso">db2_procedure_columns()</a> - Returns a result set listing stored procedure parameters</span></li>
|
||||
<li class="member"><span class="function"><a href="db2_procedures.html" class="function" rel="rdfs-seeAlso">db2_procedures()</a> - Returns a result set listing the stored procedures registered in a database</span></li>
|
||||
<li class="member"><span class="function"><a href="db2_special_columns.html" class="function" rel="rdfs-seeAlso">db2_special_columns()</a> - Returns a result set listing the unique row identifier columns for a table</span></li>
|
||||
<li class="member"><span class="function"><a href="db2_statistics.html" class="function" rel="rdfs-seeAlso">db2_statistics()</a> - Returns a result set listing the index and statistics for a table</span></li>
|
||||
<li class="member"><span class="function"><a href="db2_tables.html" class="function" rel="rdfs-seeAlso">db2_tables()</a> - Returns a result set listing the tables and associated metadata in a database</span></li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div></div></div></body></html>
|
Reference in New Issue
Block a user