cvs: phpdoc-sk /reference/oci8/functions ocicolumntype.xml
[email protected] ("Miroslav Lednicky")
| Newsgroups | php.doc.sk |
|---|---|
| Message-ID | <cvs_batman_1049988912@cvsserver> |
_batman_ Thu Apr 10 11:35:12 2003 EDT
Added files:
/phpdoc-sk/reference/oci8/functions ocicolumntype.xml
Log:
new
Index: phpdoc-sk/reference/oci8/functions/ocicolumntype.xml
+++ phpdoc-sk/reference/oci8/functions/ocicolumntype.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- splitted from ./en/functions/oci8.xml, last change in rev 1.2 -->
<refentry id="function.ocicolumntype">
<refnamediv>
<refname>ocicolumntype</refname>
<refpurpose>Vráti dátový typ ståpca</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>mixed</type><methodname>ocicolumntype</methodname>
<methodparam><type>int</type><parameter>stmt</parameter></methodparam>
<methodparam><type>int</type><parameter>col</parameter></methodparam>
</methodsynopsis>
<simpara>
<function>ocicolumntype</function> vráti dátový typ ståpca
zodpovedajúcemu èíslu ståpca (èíslované od 1) zadaného ako parameter.
</simpara>
<para>
<example>
<title>OCIColumnType</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>\n";
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
-->