<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.uodbc.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.odbc-specialcolumns.php',
    1 => 'odbc_specialcolumns',
    2 => 'Retrieves special columns',
  ),
  'up' => 
  array (
    0 => 'ref.uodbc.php',
    1 => 'ODBC Функції',
  ),
  'prev' => 
  array (
    0 => 'function.odbc-setoption.php',
    1 => 'odbc_setoption',
  ),
  'next' => 
  array (
    0 => 'function.odbc-statistics.php',
    1 => 'odbc_statistics',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/uodbc/functions/odbc-specialcolumns.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.odbc-specialcolumns" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">odbc_specialcolumns</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">odbc_specialcolumns</span> &mdash; <span class="dc-title">Retrieves special columns</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.odbc-specialcolumns-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>odbc_specialcolumns</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">Odbc\Connection</span> <code class="parameter">$odbc</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$type</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$catalog</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$schema</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$table</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$scope</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$nullable</code></span><br>): <span class="type"><span class="type">Odbc\Result</span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Retrieves either the optimal set of columns that uniquely identifies a
   row in the table, or columns that are automatically updated when any
   value in the row is updated by a transaction.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.odbc-specialcolumns-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">odbc</code></dt>
     <dd>
      <p class="para">Ідентифікатор з&#039;єднання ODBC.
Докладніше: <span class="function"><a href="function.odbc-connect.php" class="function">odbc_connect()</a></span>.</p>
     </dd>
    
    
     <dt><code class="parameter">type</code></dt>
     <dd>
      <span class="simpara">
       When the type argument is <strong><code><a href="uodbc.constants.php#constant.sql-best-rowid">SQL_BEST_ROWID</a></code></strong>,
       <span class="function"><strong>odbc_specialcolumns()</strong></span> returns the
       column or columns that uniquely identify each row in the table.
      </span>
      <span class="simpara">
       When the type argument is <strong><code><a href="uodbc.constants.php#constant.sql-rowver">SQL_ROWVER</a></code></strong>,
       <span class="function"><strong>odbc_specialcolumns()</strong></span> returns the column or columns in the
       specified table, if any, that are automatically updated by the data source
       when any value in the row is updated by any transaction.
      </span>
     </dd>
    
    
     <dt><code class="parameter">catalog</code></dt>
     <dd>
      <p class="para">
       Каталог (&#039;qualifier&#039; мовою ODBC 2).
      </p>
     </dd>
    
    
     <dt><code class="parameter">schema</code></dt>
     <dd>
      <p class="para">
       Схема (&#039;owner&#039; мовою ODBC 2).
      </p>
     </dd>
    
    
     <dt><code class="parameter">table</code></dt>
     <dd>
      <p class="para">
       The table.
      </p>
     </dd>
    
    
     <dt><code class="parameter">scope</code></dt>
     <dd>
      <p class="para">
       The scope, which orders the result set.
       One of <strong><code><a href="uodbc.constants.php#constant.sql-scope-currow">SQL_SCOPE_CURROW</a></code></strong>, <strong><code><a href="uodbc.constants.php#constant.sql-scope-transaction">SQL_SCOPE_TRANSACTION</a></code></strong>
       or <strong><code><a href="uodbc.constants.php#constant.sql-scope-session">SQL_SCOPE_SESSION</a></code></strong>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">nullable</code></dt>
     <dd>
      <p class="para">
       Determines whether to return special columns that can have a NULL value.
       One of <strong><code><a href="uodbc.constants.php#constant.sql-no-nulls">SQL_NO_NULLS</a></code></strong> or <strong><code><a href="uodbc.constants.php#constant.sql-nullable">SQL_NULLABLE</a></code></strong>.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.odbc-specialcolumns-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Returns an ODBC result object або <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> в разі помилки.
  </p>
  <p class="para">
   The result set has the following columns:
   <ul class="itemizedlist">
    <li class="listitem"><span class="simpara"><code class="literal">SCOPE</code></span></li>
    <li class="listitem"><span class="simpara"><code class="literal">COLUMN_NAME</code></span></li>
    <li class="listitem"><span class="simpara"><code class="literal">DATA_TYPE</code></span></li>
    <li class="listitem"><span class="simpara"><code class="literal">TYPE_NAME</code></span></li>
    <li class="listitem"><span class="simpara"><code class="literal">COLUMN_SIZE</code></span></li>
    <li class="listitem"><span class="simpara"><code class="literal">BUFFER_LENGTH</code></span></li>
    <li class="listitem"><span class="simpara"><code class="literal">DECIMAL_DIGITS</code></span></li>
    <li class="listitem"><span class="simpara"><code class="literal">PSEUDO_COLUMN</code></span></li>
   </ul>
   Драйвер може оголошувати додаткові стовпці.
  </p>
  <p class="simpara">
   The result set is ordered by <code class="literal">SCOPE</code>.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.odbc-specialcolumns-changelog">
  <h3 class="title">Журнал змін</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Версія</th>
      <th>Опис</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.4.0</td>
 <td>
  <code class="parameter">odbc</code> expects an <span class="classname"><strong class="classname">Odbc\Connection</strong></span>
  instance now; previously, a <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> was expected.
 </td>
</tr>

     <tr>
 <td>8.4.0</td>
 <td>
  This function returns an <span class="classname"><strong class="classname">Odbc\Result</strong></span>
  instance now; previously, a <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> was returned.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.odbc-specialcolumns-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.odbc-tables.php" class="function" rel="rdfs-seeAlso">odbc_tables()</a> - Get the list of table names stored in a specific data source</span></li>
   </ul>
  </p>
 </div>


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