cvs: phpdoc-sk /reference/oci8/functions ocicolumnsize.xml

[email protected] ("Miroslav Lednicky")
Newsgroups php.doc.sk
Message-ID <cvs_batman_1049988662@cvsserver>
_batman_		Thu Apr 10 11:31:02 2003 EDT

  Added files:                 
    /phpdoc-sk/reference/oci8/functions	ocicolumnsize.xml 
  Log:
  new
  
  

Index: phpdoc-sk/reference/oci8/functions/ocicolumnsize.xml
+++ phpdoc-sk/reference/oci8/functions/ocicolumnsize.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- splitted from ./en/functions/oci8.xml, last change in rev 1.15 -->
  <refentry id="function.ocicolumnsize">
   <refnamediv>
    <refname>ocicolumnsize</refname>
    <refpurpose>Vráti veµkos» ståpca</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>int</type><methodname>ocicolumnsize</methodname>
      <methodparam><type>int</type><parameter>stmt</parameter></methodparam>
      <methodparam><type>mixed</type><parameter>column</parameter></methodparam>
     </methodsynopsis>
    <para>
     <function>ocicolumnsize</function> vráti veµkos» ståpca vrátenú Oracle-om.
      Mô¾ete pou¾i» èíslo alebo názov ståpca ako parameter 
      <parameter>column</parameter>.
    </para>
    <para>
     <example>
      <title><function>ocicolumnsize</function> príklad</title>
      <programlisting>
<![CDATA[
<?php   
    print "<HTML><PRE>\n";   
    $conn = OCILogon("scott", "tiger");
    $stmt = OCIParse($conn,"select * from emp");
    OCIExecute($stmt);
    print "<TABLE BORDER=\"1\">";
    print "<TR>";
    print "<TH>Name</TH>";
    print "<TH>Type</TH>";
    print "<TH>Length</TH>";
    print "</TR>";
    $ncols = OCINumCols($stmt);
    for ( $i = 1; $i <= $ncols; $i++ ) {
        $column_name  = OCIColumnName($stmt,$i);
        $column_type  = OCIColumnType($stmt,$i);
        $column_size  = OCIColumnSize($stmt,$i);
        print "<TR>";
        print "<TD>$column_name</TD>";
        print "<TD>$column_type</TD>";
        print "<TD>$column_size</TD>";
        print "</TR>";
    }
    print "</TABLE>";
    OCIFreeStatement($stmt);  
    OCILogoff($conn);   
    print "</PRE>";
    print "</HTML>\n"; 
?>   
]]>
      </programlisting>
     </example>
    </para>
    <simpara>
     Viï tie¾ <function>ocinumcols</function>,
     <function>ocicolumnname</function>, a
     <function>ocicolumnsize</function>.
    </simpara>
   </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:"../../../../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
-->
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.