Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 10698

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!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>CUBRID Functions (PDO_CUBRID)</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="pdo.drivers.html">PDO Drivers</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ref.pdo-cubrid.connection.html">PDO_CUBRID DSN</a></div>
 <div class="up"><a href="pdo.drivers.html">PDO Drivers</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="ref.pdo-cubrid" class="reference">
  <h1 class="title">CUBRID Functions (PDO_CUBRID)</h1>
  
  <div class="partintro">

   <div class="section" id="pdo-cubrid.intro">
   <h2 class="title">Introduction</h2>
    <p class="para">
     PDO_CUBRID is a driver that implements the <a href="intro.pdo.html" class="link">PHP Data Objects (PDO) interface</a> to 
     enable access from PHP to CUBRID databases.
    </p>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
    <p class="para">
     Current version of PDO_CUBRID doesn&#039;t support persistent connection now.
    </p>
   </p></blockquote>
   </div>
    
   
   

<div class="section" id="ref.pdo-cubrid.installation">
 <h2 class="title">Installation</h2>
 <p class="para">
  To build the PDO_CUBRID extension, the CUBRID DBMS must be installed on the
  same system as PHP.

  PDO_CUBRID is a <a href="http://pecl.php.net/" class="link external">&raquo;&nbsp;PECL</a> extension, so
  follow the instructions in <a href="install.pecl.html" class="xref">Installation of PECL extensions</a> to install the
  PDO_CUBRID extension. Issue the <strong class="command">configure</strong> command to
  point to the location of your CUBRID base dir as follows:
  <div class="example-contents screen">
<div class="cdata"><pre>
   $ ./configure --with-pdo-cubrid=/path/to/CUBRID[,shared]
</pre></div>
  </div>
  The <strong class="command">configure</strong> command defaults to the value of the
  <em>CUBRID</em> environment variable.
 </p>
 <p class="para">
  A <acronym title="Dynamic Link Library">DLL</acronym> for this
<acronym title="PHP Extension and Application Repository">PECL</acronym> extension is currently unavailable. See also the
<a href="install.windows.building.html" class="link">building on Windows</a>
section. Detailed information about installation on Linux and
  Windows manually, please read build-guide.html in PECL package CUBRID for
  reference.
  </p>
</div>




   <div class="section" id="ref.pdo-cubrid.features">
    <h2 class="title">Features</h2>
    <table class="doctable table">
     <caption><strong>PDO_CUBRID Features</strong></caption>
     
      <thead>
       <tr>
        <th>Feature</th>
        <th>Description</th>
       </tr>

      </thead>

      <tbody class="tbody">
       <tr>
        <td>Scrollable cursors</td>
        <td>
         PDO_CUBRID supports scrollable cursors. The default cursor type is
         forward only, and you can use parameter driver_options in
          <span class="function"><a href="pdo.prepare.html" class="function">PDO::prepare()</a></span> to change cursor type.
        </td>
       </tr>

       <tr>
        <td>Timeout</td>
        <td>PDO_CUBRID supports sql statement execution timeout setting;
         You can use  <span class="function"><a href="pdo.setattribute.html" class="function">PDO::setAttribute()</a></span> to set timeout value.</td>
       </tr>

       <tr>
        <td>Autocommit_mode and Transaction</td>
        <td>
         PDO_CUBRID supports both autocommit_mode and transaction, and
         autocommit_mode is enabled by default. You can use
          <span class="function"><a href="pdo.setattribute.html" class="function">PDO::setAttribute()</a></span> to change its state. 
         
         <p class="para">
          If you use  <span class="function"><a href="pdo.begintransaction.html" class="function">PDO::beginTransaction()</a></span> to begin a
          transaction, it will disable autocommit_mode automatically and
          restore it after  <span class="function"><a href="pdo.commit.html" class="function">PDO::commit()</a></span> or
           <span class="function"><a href="pdo.rollback.html" class="function">PDO::rollBack()</a></span>. Note that before disabling the
          autocommit_mode, any pending work is automatically committed. 
         </p>
        </td>
       </tr>

       <tr>
        <td>Multiple SQL Statements</td>
        <td>PDO_CUBRID supports Multiple SQL statements. Multiple SQL
         statements are separated by semicolons (;)</td>
       </tr>

       <tr>
        <td>Schema Information</td>
        <td>PDO_CUBRID implements a function
          <span class="function"><a href="pdo.cubrid-schema.html" class="function">PDO::cubrid_schema()</a></span> to get schema information.
        </td>
       </tr>

       <tr>
        <td>LOBs</td>
        <td>PDO_CUBRID supports BLOB/CLOB data type. The LOB in PDO is
         represented as a stream, so you can insert LOBs by binding a stream, 
         and get LOBs by reading a stream returned by CUBRID PDO. For example:

         <p class="para">
          <div class="example" id="example-963"><p><strong>Example #1 Insert LOBs in CUBRID PDO</strong></p>
           <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$fp&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">fopen</span><span style="color: #007700">(</span><span style="color: #DD0000">'lob_test.png'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'rb'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$sql_stmt&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"INSERT&nbsp;INTO&nbsp;lob_test(name,&nbsp;content)&nbsp;VALUES('lob_test.png',&nbsp;?)"</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$stmt&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$dbh</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql_stmt</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$ret&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">bindParam</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$fp</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">PDO</span><span style="color: #007700">::</span><span style="color: #0000BB">PARAM_LOB</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$ret&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
           </div>

          </div>
         </p>
         <p class="para">
          <div class="example" id="example-964"><p><strong>Example #2 Fetch LOBs in CUBRID PDO</strong></p>
           <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$sql_stmt&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"SELECT&nbsp;content&nbsp;FROM&nbsp;lob_test&nbsp;WHERE&nbsp;name='lob_test.png'"</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$stmt&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$dbh</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql_stmt</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch</span><span style="color: #007700">(</span><span style="color: #0000BB">PDO</span><span style="color: #007700">::</span><span style="color: #0000BB">FETCH_NUM</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">header</span><span style="color: #007700">(</span><span style="color: #DD0000">"Content-Type:&nbsp;image/png"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">fpassthru</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
           </div>

          </div>
         </p>
        </td>
       </tr>

       <tr>
        <td>Column meta</td>
        <td>
         The  <span class="function"><a href="pdostatement.getcolumnmeta.html" class="function">PDOStatement::getColumnMeta()</a></span> in CUBRID PDO
         will return an associative array containing the following values:
         <ul class="simplelist">
          <li class="member">type</li>
          <li class="member">name</li>
          <li class="member">table</li>
          <li class="member">def</li>
          <li class="member">precision</li>
          <li class="member">scale</li>
          <li class="member">not_null</li>
          <li class="member">auto_increment</li>
          <li class="member">unique_key</li>
          <li class="member">multiple_key</li>
          <li class="member">primary_key</li>
          <li class="member">foreign_key</li>
          <li class="member">reverse_index</li>
          <li class="member">reverse_unique</li>
         </ul>
        </td>
       </tr>

       <tr>
        <td>Collection Data Type</td>
        <td>PDO_CUBRID supports SET/MULTISET/SEQUENCE data type. If you don&#039;t specify data type, 
        the default data type is char,for example:
         <p class="para">
          <div class="example" id="example-965"><p><strong>Example #3 Insert set in CUBRID PDO with default data type.</strong></p>
           <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$conn_str&nbsp;</span><span style="color: #007700">=</span><span style="color: #DD0000">"cubrid:dbname=demodb;host=localhost;port=33000"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$cubrid_pdo&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">PDO</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn_str</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'dba'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$cubrid_pdo</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">exec</span><span style="color: #007700">(</span><span style="color: #DD0000">"DROP&nbsp;TABLE&nbsp;if&nbsp;exists&nbsp;test_tbl"</span><span style="color: #007700">);&nbsp;<br /></span><span style="color: #0000BB">$cubrid_pdo</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">exec</span><span style="color: #007700">(</span><span style="color: #DD0000">"CREATE&nbsp;TABLE&nbsp;test_tbl&nbsp;(col_1&nbsp;SET(VARCHAR))"</span><span style="color: #007700">);<br />&nbsp;<br /></span><span style="color: #0000BB">$sql_stmt_insert&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"INSERT&nbsp;INTO&nbsp;test_tbl&nbsp;VALUES&nbsp;(?);"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$stmt&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$cubrid_pdo</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql_stmt_insert</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$data&nbsp;</span><span style="color: #007700">=&nbsp;array(</span><span style="color: #DD0000">"abc"</span><span style="color: #007700">,</span><span style="color: #DD0000">"def"</span><span style="color: #007700">,</span><span style="color: #DD0000">"ghi"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$ret&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">bindParam</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$data</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">PDO</span><span style="color: #007700">::</span><span style="color: #0000BB">PARAM_NULL</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$ret&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">var_Dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$ret</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
           </div>

          </div>
         </p>
         <p class="para">
          <div class="example" id="example-966"><p><strong>Example #4 Specify data type when insert set in CUBRID PDO</strong></p>
           <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$conn_str&nbsp;</span><span style="color: #007700">=</span><span style="color: #DD0000">"cubrid:dbname=demodb;host=localhost;port=33000"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$cubrid_pdo&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">PDO</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn_str</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'dba'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$cubrid_pdo</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">exec</span><span style="color: #007700">(</span><span style="color: #DD0000">"DROP&nbsp;TABLE&nbsp;if&nbsp;exists&nbsp;test_tbl"</span><span style="color: #007700">);&nbsp;<br /></span><span style="color: #0000BB">$cubrid_pdo</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">exec</span><span style="color: #007700">(</span><span style="color: #DD0000">"CREATE&nbsp;TABLE&nbsp;test_tbl&nbsp;(col_1&nbsp;SET(int))"</span><span style="color: #007700">);<br />&nbsp;<br /></span><span style="color: #0000BB">$sql_stmt_insert&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"INSERT&nbsp;INTO&nbsp;test_tbl&nbsp;VALUES&nbsp;(?);"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$stmt&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$cubrid_pdo</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql_stmt_insert</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$data&nbsp;</span><span style="color: #007700">=&nbsp;array(</span><span style="color: #0000BB">1</span><span style="color: #007700">,</span><span style="color: #0000BB">2</span><span style="color: #007700">,</span><span style="color: #0000BB">3</span><span style="color: #007700">,</span><span style="color: #0000BB">4</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$ret&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">bindParam</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$data</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #DD0000">"int"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$ret&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">var_Dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$ret</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
           </div>

          </div>
         </p>
         CUBRID Bind Data Types:(The fifth parameter of PDOStatement::bindParam):
         <ul class="simplelist">
          <li class="member">CHAR</li>
          <li class="member">STRING</li>
          <li class="member">NCHAR</li>
          <li class="member">VARNCHAR</li>
          <li class="member">BIT</li>
          <li class="member">VARBIT</li>
          <li class="member">NUMERIC</li>
          <li class="member">NUMBER</li>
          <li class="member">INT</li>
          <li class="member">SHORT</li>
          <li class="member">BIGINT</li>
          <li class="member">MONETARY</li>
          <li class="member">FLOAT</li>
          <li class="member">DOUBLE</li>
          <li class="member">DATE</li>
          <li class="member">TIME</li>
          <li class="member">DATETIME</li>
          <li class="member">TIMESTAMP</li>
         </ul>
        </td>
       </tr>

      </tbody>
     
    </table>

   </div>

   
   

<div class="section" id="pdo-cubrid.constants">
 <h2 class="title">Predefined Constants</h2>
 <p class="simpara">The constants below are defined by
this driver, and will only be available when the extension has been either
compiled into PHP or dynamically loaded at runtime. In addition, these
driver-specific constants should only be used if you are using this driver.
Using driver-specific attributes with another driver may result in
unexpected behaviour.  <span class="function"><a href="pdo.getattribute.html" class="function">PDO::getAttribute()</a></span> may be used to
obtain the <strong><code>PDO_ATTR_DRIVER_NAME</code></strong> attribute to check the
driver, if your code can run against multiple drivers.</p>
  <p class="para">
   The following constants can be used when setting the database attribute.
   They can be passed to  <span class="function"><a href="pdo.getattribute.html" class="function">PDO::getAttribute()</a></span> or
    <span class="function"><a href="pdo.setattribute.html" class="function">PDO::setAttribute()</a></span>.
  <table class="doctable table">
   <caption><strong>PDO::CUBRID attribute flags</strong></caption>
    
     <thead>
      <tr>
       <th>Constant</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>PDO::CUBRID_ATTR_ISOLATION_LEVEL</td>
       <td>Transaction isolation level for the database connection.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_ATTR_LOCK_TIMEOUT</td>
       <td>Transaction timeout in seconds.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_ATTR_MAX_STRING_LENGTH</td>
       <td>Read only. The maximum string length for bit, varbit, char,
        varchar, nchar, nchar varying data types when using CUBRID PDO
        API.</td>
      </tr>

     </tbody>
    
   </table>

  </p>

  <p class="para">
   The following constants can be used when setting the transaction isolation
   level. They can be passed to  <span class="function"><a href="pdo.getattribute.html" class="function">PDO::getAttribute()</a></span> or
   returned by  <span class="function"><a href="pdo.setattribute.html" class="function">PDO::setAttribute()</a></span>.
  <table class="doctable table">
   <caption><strong>PDO::CUBRID isolation level flags</strong></caption>
    
     <thead>
      <tr>
       <th>Constant</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>PDO::TRAN_COMMIT_CLASS_UNCOMMIT_INSTANCE</td>
       <td>The lowest isolation level (1). A dirty, non-repeatable or
        phantom read may occur for the tuple and a non-repeatable read may
        occur for the table as well.</td>
      </tr>

      <tr>
       <td>PDO::TRAN_COMMIT_CLASS_COMMIT_INSTANCE</td>
       <td>A relatively low isolation level (2). A dirty read does not
        occur, but non-repeatable or phantom read may occur.</td>
      </tr>

      <tr>
       <td>PDO::TRAN_REP_CLASS_UNCOMMIT_INSTANCE</td>
       <td>The default isolation of CUBRID (3). A dirty, non-repeatable or
        phantom read may occur for the tuple, but repeatable read is ensured
        for the table.</td>
      </tr>

      <tr>
       <td>PDO::TRAN_REP_CLASS_COMMIT_INSTANCE</td>
       <td>A relatively low isolation level (4). A dirty read does not
        occur, but non-repeatable or phantom read may.</td>
      </tr>

      <tr>
       <td>PDO::TRAN_REP_CLASS_REP_INSTANCE</td>
       <td>A relatively high isolation level (5). A dirty or non-repeatable
       read does not occur, but a phantom read may.</td>
      </tr>

      <tr>
       <td>PDO::TRAN_SERIALIZABLE</td>
       <td>The highest isolation level (6). Problems concerning concurrency
       (e.g. dirty read, non-repeatable read, phantom read, etc.) do not
       occur.</td>
      </tr>

     </tbody>
    
   </table>

  </p>

  <p class="para">
   The following constants can be used when getting schema information. They
   can be passed to  <span class="function"><a href="pdo.cubrid-schema.html" class="function">PDO::cubrid_schema()</a></span>.
  <table class="doctable table">
   <caption><strong>PDO::CUBRID schema flags</strong></caption>
    
     <thead>
      <tr>
       <th>Constant</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>PDO::CUBRID_SCH_TABLE</td>
       <td>Get name and type of table in CUBRID.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_SCH_VIEW</td>
       <td>Get name and type of view in CUBRID.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_SCH_QUERY_SPEC</td>
       <td>Get the query definition of view.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_SCH_ATTRIBUTE</td>
       <td>Get the attributes of table column.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_SCH_TABLE_ATTRIBUTE</td>
       <td>Get the attributes of table.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_SCH_METHOD</td>
       <td>Get the instance method. The instance method is a method called
       by a class instance. It is used more often than the class method
       because most operations are executed in the instance.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_SCH_TABLE_METHOD</td>
       <td>Get the class method. The class method is a method called by a
        class object. It is usually used to create a new class instance or to
        initialize it. It is also used to access or update class
        attributes.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_SCH_METHOD_FILE</td>
       <td>Get the information of the file where the method of the table is
        defined.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_SCH_SUPER_TABLE</td>
       <td>Get the name and type of table which table inherites attributes
        from.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_SCH_SUB_TABLE</td>
       <td>Get the name and type of table which inherites attributes from
        this table.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_SCH_CONSTRAINT</td>
       <td>Get the table constraints.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_SCH_TRIGGER</td>
       <td>Get the table triggers.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_SCH_TABLE_PRIVILEGE</td>
       <td>Get the privilege information of table.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_SCH_COL_PRIVILEGE</td>
       <td>Get the privilege information of column.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_SCH_DIRECT_SUPER_TABLE</td>
       <td>Get the direct super table of table.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_SCH_PRIMARY_KEY</td>
       <td>Get the table primary key.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_SCH_IMPORTED_KEYS</td>
       <td>Get imported keys of table.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_SCH_EXPORTED_KEYS</td>
       <td>Get exported keys of table.</td>
      </tr>

      <tr>
       <td>PDO::CUBRID_SCH_CROSS_REFERENCE</td>
       <td>Get reference relationship of tow tables.</td>
      </tr>

     </tbody>
    
   </table>

  </p>
</div>




  </div>

  

  








 <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="ref.pdo-cubrid.connection.html">PDO_CUBRID DSN</a> — Connecting to CUBRID databases</li><li><a href="pdo.cubrid-schema.html">PDO::cubrid_schema</a> — Get the requested schema information</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="pdo.drivers.html">PDO Drivers</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ref.pdo-cubrid.connection.html">PDO_CUBRID DSN</a></div>
 <div class="up"><a href="pdo.drivers.html">PDO Drivers</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>