Files
php-doc-ru/reference/ibm_db2/functions/db2-column-privileges.xml
2023-04-11 11:45:36 +03:00

208 lines
6.9 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 871b71764cdca8238069f27436d96011a6a2cb36 Maintainer: rjhdby Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.db2-column-privileges" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>db2_column_privileges</refname>
<refpurpose>
Возвращает результирующий набор, перечисляющий столбцы
и связанные с ним привилегии для таблицы
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>resource</type><methodname>db2_column_privileges</methodname>
<methodparam><type>resource</type><parameter>connection</parameter></methodparam>
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>qualifier</parameter><initializer>&null;</initializer></methodparam>
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>schema</parameter><initializer>&null;</initializer></methodparam>
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>table_name</parameter><initializer>&null;</initializer></methodparam>
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>column_name</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>
<para>
Возвращает результирующий набор, перечисляющий столбцы
и связанные с ним привилегии для таблицы.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>connection</parameter></term>
<listitem>
<para>
Ресурс соединения с базой данных IBM DB2, Cloudscape
или Apache Derby.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>qualifier</parameter></term>
<listitem>
<para>
Квалификатор для баз DB2, работающих на серверах
OS/390 или z/OS. В остальных случаях указывайте &null;
или пустую строку.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>schema</parameter></term>
<listitem>
<para>
Схема, содержащая таблицы. Для выбора всех схем
укажите &null; или пустую строку.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>table_name</parameter></term>
<listitem>
<para>
Имя таблицы или представления. Для выбора всех таблиц
укажите &null; или пустую строку.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>column_name</parameter></term>
<listitem>
<para>
Имя столбца. Для выбора всех столбцов
укажите &null; или пустую строку.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Возвращает ресурс оператора с результирующим набором,
содержащим строки, описывающие привилегии заданных
условиями столбцов. Строки содержат следующие поля:
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>Имя столбца</entry>
<entry>Описание</entry>
</row>
</thead>
<tbody>
<row>
<entry>TABLE_CAT</entry>
<entry>Имя каталога. Если таблица не имеет каталогов,
то это поле будет содержать NULL.</entry>
</row>
<row>
<entry>TABLE_SCHEM</entry>
<entry>Имя схемы.</entry>
</row>
<row>
<entry>TABLE_NAME</entry>
<entry>Имя таблицы или представления.</entry>
</row>
<row>
<entry>COLUMN_NAME</entry>
<entry>Имя столбца.</entry>
</row>
<row>
<entry>GRANTOR</entry>
<entry>Идентификатор пользователя, установившего привилегию.</entry>
</row>
<row>
<entry>GRANTEE</entry>
<entry>Идентификатор пользователя, для которого
установлена привилегия.</entry>
</row>
<row>
<entry>PRIVILEGE</entry>
<entry>Установленная привилегия.</entry>
</row>
<row>
<entry>IS_GRANTABLE</entry>
<entry>Может ли GRANTEE выдавать эту привилегию
другим пользователям.</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>
<!-- Use when examples exist
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>A <function>db2_column_privileges</function> example</title>
<para>
Any text that describes the purpose of the example, or
what goes on in the example should go here (inside the
<example> tag, not out
</para>
<programlisting role="php">
<![CDATA[
<?php
if ($anexample === true) {
echo 'Use the PEAR Coding Standards';
}
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
Use the PEAR Coding Standards
]]>
</screen>
</example>
</para>
</refsect1>
-->
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>db2_columns</function></member>
<member><function>db2_foreign_keys</function></member>
<member><function>db2_primary_keys</function></member>
<member><function>db2_procedure_columns</function></member>
<member><function>db2_procedures</function></member>
<member><function>db2_special_columns</function></member>
<member><function>db2_statistics</function></member>
<member><function>db2_table_privileges</function></member>
<member><function>db2_tables</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->