Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 12283

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>ODBC Functions (Unified)</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="函数参考"
HREF="funcref.html"><LINK
REL="PREVIOUS"
TITLE="ociwritetemporarylob"
HREF="function.ociwritetemporarylob.html"><LINK
REL="NEXT"
TITLE="odbc_autocommit"
HREF="function.odbc-autocommit.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="reference"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.ociwritetemporarylob.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.odbc-autocommit.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="reference"
><A
NAME="ref.uodbc"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
>CVIII. ODBC Functions (Unified)</H1
><DIV
CLASS="PARTINTRO"
><A
NAME="AEN159721"
></A
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="uodbc.intro"
>简介</A
></H1
><P
>&#13;     In addition to normal ODBC support, the Unified ODBC functions in
     PHP allow you to access several databases that have borrowed the
     semantics of the ODBC API to implement their own API.  Instead of
     maintaining multiple database drivers that were all nearly
     identical, these drivers have been unified into a single set of
     ODBC functions.
    </P
><P
>&#13;     The following databases are supported by the Unified ODBC
     functions: <A
HREF="http://www.softwareag.com/Corporate/products/adabas/adad/"
TARGET="_top"
>Adabas D</A
>,
     <A
HREF="http://www-306.ibm.com/software/data/db2/"
TARGET="_top"
>IBM DB2</A
>,
     <A
HREF="http://www.iodbc.org/"
TARGET="_top"
>iODBC</A
>,
     <A
HREF="http://www.solidtech.com/"
TARGET="_top"
>Solid</A
>, and
     <A
HREF="http://www.sybase.com/"
TARGET="_top"
>Sybase SQL Anywhere</A
>.
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>
      With the exception of iODBC, there is no ODBC involved when 
      connecting to the above databases. The functions that you 
      use to speak natively to them just happen to share the same 
      names and syntax as the ODBC functions. However, building PHP 
      with iODBC support enables you to use any ODBC-compliant 
      drivers with your PHP applications. More information on iODBC,
      is available at <A
HREF="http://www.iodbc.org/"
TARGET="_top"
>www.iodbc.org</A
>
      with the alternative unixODBC available at 
      <A
HREF="http://www.unixodbc.org/"
TARGET="_top"
>www.unixodbc.org</A
>.
     </P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="uodbc.requirements"
>需求</A
></H1
><P
>&#13;     To access any of the supported databases you need to have
     the required libraries installed.
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="odbc.installation"
>安装</A
></H1
><P
>&#13;  <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><A
NAME="install.configure.with-adabas"
></A
><CODE
CLASS="option"
>--with-adabas[=DIR]</CODE
></DT
><DD
><P
>&#13;      Include Adabas D support. DIR is the Adabas base install directory, 
      defaults to <TT
CLASS="filename"
>/usr/local</TT
>.
     </P
></DD
><DT
><A
NAME="install.configure.with-sapdb"
></A
><CODE
CLASS="option"
>--with-sapdb[=DIR]</CODE
></DT
><DD
><P
>&#13;      Include SAP DB support. DIR is SAP DB base install directory, 
      defaults to <TT
CLASS="filename"
>/usr/local</TT
>.
     </P
></DD
><DT
><A
NAME="install.configure.with-solid"
></A
><CODE
CLASS="option"
>--with-solid[=DIR]</CODE
></DT
><DD
><P
>&#13;      Include Solid support. DIR is the Solid base install directory, 
      defaults to <TT
CLASS="filename"
>/usr/local/solid</TT
>.
     </P
></DD
><DT
><A
NAME="install.configure.with-ibm-db2"
></A
><CODE
CLASS="option"
>--with-ibm-db2[=DIR]</CODE
></DT
><DD
><P
>&#13;      Include IBM DB2 support. DIR is the DB2 base install directory, 
      defaults to <TT
CLASS="filename"
>/home/db2inst1/sqllib</TT
>.
     </P
></DD
><DT
><A
NAME="install.configure.with-empress"
></A
><CODE
CLASS="option"
>--with-empress[=DIR]</CODE
></DT
><DD
><P
>&#13;      Include Empress support. DIR is the Empress base install directory, 
      defaults to $EMPRESSPATH. From PHP 4, this option only supports 
      Empress Version 8.60 and above.
     </P
></DD
><DT
><A
NAME="install.configure.with-empress-bcs"
></A
><CODE
CLASS="option"
>--with-empress-bcs[=DIR]</CODE
></DT
><DD
><P
>&#13;      Include Empress Local Access support. DIR is the Empress base 
      install directory, defaults to $EMPRESSPATH.  From PHP 4, 
      this option only supports Empress Version 8.60 and above.
     </P
></DD
><DT
><A
NAME="install.configure.with-birdstep"
></A
><CODE
CLASS="option"
>--with-birdstep[=DIR]</CODE
></DT
><DD
><P
>&#13;      Include Birdstep support. DIR is the Birdstep base install directory, 
      defaults to <TT
CLASS="filename"
>/usr/local/birdstep</TT
>.
     </P
></DD
><DT
><A
NAME="install.configure.with-custom-odbc"
></A
><CODE
CLASS="option"
>--with-custom-odbc[=DIR]</CODE
></DT
><DD
><P
>&#13;      Include a user defined ODBC support. The DIR is ODBC install base directory, 
      which defaults to <TT
CLASS="filename"
>/usr/local</TT
>. Make sure to define
      CUSTOM_ODBC_LIBS and have some <TT
CLASS="filename"
>odbc.h</TT
> in your include
      dirs. E.g., you should define following for Sybase SQL Anywhere 5.5.00 on
      QNX, prior to run configure script:

   CPPFLAGS="-DODBC_QNX -DSQLANY_BUG"
   LDFLAGS=-lunix
   CUSTOM_ODBC_LIBS="-ldblib -lodbc".
 
     </P
></DD
><DT
><A
NAME="install.configure.with-iodbc"
></A
><CODE
CLASS="option"
>--with-iodbc[=DIR]</CODE
></DT
><DD
><P
>&#13;      Include iODBC support. DIR is the iODBC base install directory, 
      defaults to <TT
CLASS="filename"
>/usr/local</TT
>.
     </P
></DD
><DT
><A
NAME="install.configure.with-esoob"
></A
><CODE
CLASS="option"
>--with-esoob[=DIR]</CODE
></DT
><DD
><P
>&#13;      Include Easysoft OOB support. DIR is the OOB base install directory, 
      defaults to <TT
CLASS="filename"
>/usr/local/easysoft/oob/client</TT
>.
     </P
></DD
><DT
><A
NAME="install.configure.with-unixODBC"
></A
><CODE
CLASS="option"
>--with-unixODBC[=DIR]</CODE
></DT
><DD
><P
>&#13;      Include unixODBC support. DIR is the unixODBC base install directory, 
      defaults to <TT
CLASS="filename"
>/usr/local</TT
>.
     </P
></DD
><DT
><A
NAME="install.configure.with-openlink"
></A
><CODE
CLASS="option"
>--with-openlink[=DIR]</CODE
></DT
><DD
><P
>&#13;      Include OpenLink ODBC support. DIR is the OpenLink base install directory, 
      defaults to <TT
CLASS="filename"
>/usr/local</TT
>. This is the same as iODBC.
     </P
></DD
><DT
><A
NAME="install.configure.with-dbmaker"
></A
><CODE
CLASS="option"
>--with-dbmaker[=DIR]</CODE
></DT
><DD
><P
>&#13;      Include DBMaker support. DIR is the DBMaker base install directory, 
      defaults to where the latest version of DBMaker is installed 
      (such as <TT
CLASS="filename"
>/home/dbmaker/3.6</TT
>).
     </P
></DD
></DL
></DIV
>
 </P
><P
>&#13;  To disable unified ODBC support in <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>PHP 3</I
></SPAN
> add
  <CODE
CLASS="option"
>--disable-unified-odbc</CODE
> to your configure
  line. Only applicable if iODBC, Adabas, Solid, Velocis or a custom ODBC
  interface is enabled.
 </P
><P
> <TT
CLASS="literal"
>PHP</TT
> 的 Windows
版本已经内置该扩展模块的支持。无需加载任何附加扩展库即可使用这些函数。</P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="odbc.configuration"
>运行时配置</A
></H1
><P
>这些函数的行为受 <TT
CLASS="filename"
>php.ini</TT
> 的影响。</P
><P
>&#13;  <DIV
CLASS="table"
><A
NAME="AEN159829"
></A
><P
><B
>表 1. Unified ODBC Configuration Options</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL><COL><COL><COL><THEAD
><TR
><TH
>Name</TH
><TH
>Default</TH
><TH
>Changeable</TH
><TH
>Changelog</TH
></TR
></THEAD
><TBODY
><TR
><TD
>odbc.default_db *</TD
><TD
>NULL</TD
><TD
>PHP_INI_ALL</TD
><TD
>&nbsp;</TD
></TR
><TR
><TD
>odbc.default_user *</TD
><TD
>NULL</TD
><TD
>PHP_INI_ALL</TD
><TD
>&nbsp;</TD
></TR
><TR
><TD
>odbc.default_pw *</TD
><TD
>NULL</TD
><TD
>PHP_INI_ALL</TD
><TD
>&nbsp;</TD
></TR
><TR
><TD
>odbc.allow_persistent</TD
><TD
>"1"</TD
><TD
>PHP_INI_SYSTEM</TD
><TD
>&nbsp;</TD
></TR
><TR
><TD
>odbc.check_persistent</TD
><TD
>"1"</TD
><TD
>PHP_INI_SYSTEM</TD
><TD
>&nbsp;</TD
></TR
><TR
><TD
>odbc.max_persistent</TD
><TD
>"-1"</TD
><TD
>PHP_INI_SYSTEM</TD
><TD
>&nbsp;</TD
></TR
><TR
><TD
>odbc.max_links</TD
><TD
>"-1"</TD
><TD
>PHP_INI_SYSTEM</TD
><TD
>&nbsp;</TD
></TR
><TR
><TD
>odbc.defaultlrl</TD
><TD
>"4096"</TD
><TD
>PHP_INI_ALL</TD
><TD
>&nbsp;</TD
></TR
><TR
><TD
>odbc.defaultbinmode</TD
><TD
>"1"</TD
><TD
>PHP_INI_ALL</TD
><TD
>&nbsp;</TD
></TR
></TBODY
></TABLE
></DIV
>
  <DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>
    Entries marked with * are not implemented yet.
   </P
></BLOCKQUOTE
></DIV
>
  有关 PHP_INI_* 常量进一步的细节与定义参见<A
HREF="ini.html"
>附录 H</A
>。
 </P
><P
>以下是配置选项的简要解释。</P
><P
>&#13; <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><A
NAME="ini.uodbc.default-db"
></A
><CODE
CLASS="parameter"
>odbc.default_db</CODE
>
    <A
HREF="language.types.string.html"
><B
CLASS="type"
>string</B
></A
></DT
><DD
><P
>&#13;     ODBC data source to use if none is specified in
     <A
HREF="function.odbc-connect.html"
><B
CLASS="function"
>odbc_connect()</B
></A
> or
     <A
HREF="function.odbc-pconnect.html"
><B
CLASS="function"
>odbc_pconnect()</B
></A
>.
    </P
></DD
><DT
><A
NAME="ini.uodbc.default-user"
></A
><CODE
CLASS="parameter"
>odbc.default_user</CODE
>
    <A
HREF="language.types.string.html"
><B
CLASS="type"
>string</B
></A
></DT
><DD
><P
>&#13;     User name to use if none is specified in
     <A
HREF="function.odbc-connect.html"
><B
CLASS="function"
>odbc_connect()</B
></A
> or
     <A
HREF="function.odbc-pconnect.html"
><B
CLASS="function"
>odbc_pconnect()</B
></A
>.
    </P
></DD
><DT
><A
NAME="ini.uodbc.default-pw"
></A
><CODE
CLASS="parameter"
>odbc.default_pw</CODE
>
    <A
HREF="language.types.string.html"
><B
CLASS="type"
>string</B
></A
></DT
><DD
><P
>&#13;     Password to use if none is specified in
     <A
HREF="function.odbc-connect.html"
><B
CLASS="function"
>odbc_connect()</B
></A
> or
     <A
HREF="function.odbc-pconnect.html"
><B
CLASS="function"
>odbc_pconnect()</B
></A
>.
    </P
></DD
><DT
><A
NAME="ini.uodbc.allow-persistent"
></A
><CODE
CLASS="parameter"
>odbc.allow_persistent</CODE
>
    <A
HREF="language.types.boolean.html"
><B
CLASS="type"
>boolean</B
></A
></DT
><DD
><P
>&#13;     Whether to allow persistent ODBC connections.
    </P
></DD
><DT
><A
NAME="ini.uodbc.check-persistent"
></A
><CODE
CLASS="parameter"
>odbc.check_persistent</CODE
>
    <A
HREF="language.types.boolean.html"
><B
CLASS="type"
>boolean</B
></A
></DT
><DD
><P
>&#13;     Check that a connection is still valid before reuse.
    </P
></DD
><DT
><A
NAME="ini.uodbc.max-persistent"
></A
><CODE
CLASS="parameter"
>odbc.max_persistent</CODE
>
    <A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
></DT
><DD
><P
>&#13;     The maximum number of persistent ODBC connections per process.
    </P
></DD
><DT
><A
NAME="ini.uodbc.max-links"
></A
><CODE
CLASS="parameter"
>odbc.max_links</CODE
>
    <A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
></DT
><DD
><P
>&#13;     The maximum number of ODBC connections per process, including
     persistent connections.
    </P
></DD
><DT
><A
NAME="ini.uodbc.defaultlrl"
></A
><CODE
CLASS="parameter"
>odbc.defaultlrl</CODE
>
    <A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
></DT
><DD
><P
>&#13;     Handling of LONG fields. Specifies the number of bytes returned to
     variables.
    </P
><P
>当使用 <A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>
类型时,其值以字节为度量单位。还可以用简化符号,说明见此
<A
HREF="faq.using.html#faq.using.shorthandbytes"
>FAQ</A
>。</P
></DD
><DT
><A
NAME="ini.uodbc.defaultbinmode"
></A
><CODE
CLASS="parameter"
>odbc.defaultbinmode</CODE
>
    <A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
></DT
><DD
><P
>&#13;     Handling of binary data.
    </P
></DD
></DL
></DIV
>
 </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="uodbc.resources"
>资源类型</A
></H1
><P
>&#13;     This extension defines two resource types: an ODBC connection identifier
     and an ODBC result identifier.
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="uodbc.constants"
>预定义常量</A
></H1
><P
>以下常量由本扩展模块定义,因此只有在本扩展模块被编译到
PHP 中,或者在运行时被动态加载后才有效。</P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><TT
CLASS="constant"
><B
>ODBC_TYPE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>ODBC_BINMODE_PASSTHRU</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>ODBC_BINMODE_RETURN</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>ODBC_BINMODE_CONVERT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_ODBC_CURSORS</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_CUR_USE_DRIVER</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_CUR_USE_IF_NEEDED</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_CUR_USE_ODBC</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_CONCURRENCY</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_CONCUR_READ_ONLY</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_CONCUR_LOCK</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_CONCUR_ROWVER</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_CONCUR_VALUES</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_CURSOR_TYPE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_CURSOR_FORWARD_ONLY</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_CURSOR_KEYSET_DRIVEN</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_CURSOR_DYNAMIC</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_CURSOR_STATIC</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_KEYSET_SIZE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_CHAR</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_VARCHAR</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_LONGVARCHAR</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_DECIMAL</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_NUMERIC</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_BIT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_TINYINT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_SMALLINT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_INTEGER</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_BIGINT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_REAL</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_FLOAT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_DOUBLE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_BINARY</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_VARBINARY</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_LONGVARBINARY</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_DATE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_TIME</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_TIMESTAMP</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_TYPE_DATE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_TYPE_TIME</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_TYPE_TIMESTAMP</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_BEST_ROWID</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_ROWVER</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_SCOPE_CURROW</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_SCOPE_TRANSACTION</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_SCOPE_SESSION</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_NO_NULLS</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_NULLABLE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_INDEX_UNIQUE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_INDEX_ALL</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_ENSURE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQL_QUICK</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
></DL
></DIV
></DIV
></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>目录</B
></DT
><DT
><A
HREF="function.odbc-autocommit.html"
>odbc_autocommit</A
>&nbsp;--&nbsp;Toggle autocommit behaviour</DT
><DT
><A
HREF="function.odbc-binmode.html"
>odbc_binmode</A
>&nbsp;--&nbsp;Handling of binary column data</DT
><DT
><A
HREF="function.odbc-close-all.html"
>odbc_close_all</A
>&nbsp;--&nbsp;Close all ODBC connections</DT
><DT
><A
HREF="function.odbc-close.html"
>odbc_close</A
>&nbsp;--&nbsp;Close an ODBC connection</DT
><DT
><A
HREF="function.odbc-columnprivileges.html"
>odbc_columnprivileges</A
>&nbsp;--&nbsp;Returns a result identifier that can be used to fetch a list of columns and associated privileges</DT
><DT
><A
HREF="function.odbc-columns.html"
>odbc_columns</A
>&nbsp;--&nbsp;Lists the column names in specified tables</DT
><DT
><A
HREF="function.odbc-commit.html"
>odbc_commit</A
>&nbsp;--&nbsp;Commit an ODBC transaction</DT
><DT
><A
HREF="function.odbc-connect.html"
>odbc_connect</A
>&nbsp;--&nbsp;Connect to a datasource</DT
><DT
><A
HREF="function.odbc-cursor.html"
>odbc_cursor</A
>&nbsp;--&nbsp;Get cursorname</DT
><DT
><A
HREF="function.odbc-data-source.html"
>odbc_data_source</A
>&nbsp;--&nbsp;Returns information about a current connection</DT
><DT
><A
HREF="function.odbc-do.html"
>odbc_do</A
>&nbsp;--&nbsp;Synonym for <A
HREF="function.odbc-exec.html"
><B
CLASS="function"
>odbc_exec()</B
></A
></DT
><DT
><A
HREF="function.odbc-error.html"
>odbc_error</A
>&nbsp;--&nbsp;Get the last error code</DT
><DT
><A
HREF="function.odbc-errormsg.html"
>odbc_errormsg</A
>&nbsp;--&nbsp;Get the last error message</DT
><DT
><A
HREF="function.odbc-exec.html"
>odbc_exec</A
>&nbsp;--&nbsp;Prepare and execute a SQL statement</DT
><DT
><A
HREF="function.odbc-execute.html"
>odbc_execute</A
>&nbsp;--&nbsp;Execute a prepared statement</DT
><DT
><A
HREF="function.odbc-fetch-array.html"
>odbc_fetch_array</A
>&nbsp;--&nbsp;Fetch a result row as an associative array</DT
><DT
><A
HREF="function.odbc-fetch-into.html"
>odbc_fetch_into</A
>&nbsp;--&nbsp;Fetch one result row into array</DT
><DT
><A
HREF="function.odbc-fetch-object.html"
>odbc_fetch_object</A
>&nbsp;--&nbsp;Fetch a result row as an object</DT
><DT
><A
HREF="function.odbc-fetch-row.html"
>odbc_fetch_row</A
>&nbsp;--&nbsp;Fetch a row</DT
><DT
><A
HREF="function.odbc-field-len.html"
>odbc_field_len</A
>&nbsp;--&nbsp;Get the length (precision) of a field</DT
><DT
><A
HREF="function.odbc-field-name.html"
>odbc_field_name</A
>&nbsp;--&nbsp;Get the columnname</DT
><DT
><A
HREF="function.odbc-field-num.html"
>odbc_field_num</A
>&nbsp;--&nbsp;Return column number</DT
><DT
><A
HREF="function.odbc-field-precision.html"
>odbc_field_precision</A
>&nbsp;--&nbsp;Synonym for <A
HREF="function.odbc-field-len.html"
><B
CLASS="function"
>odbc_field_len()</B
></A
></DT
><DT
><A
HREF="function.odbc-field-scale.html"
>odbc_field_scale</A
>&nbsp;--&nbsp;Get the scale of a field</DT
><DT
><A
HREF="function.odbc-field-type.html"
>odbc_field_type</A
>&nbsp;--&nbsp;Datatype of a field</DT
><DT
><A
HREF="function.odbc-foreignkeys.html"
>odbc_foreignkeys</A
>&nbsp;--&nbsp;Returns a list of foreign keys in the specified table or a list of foreign keys in other tables that refer to the primary key in the specified table</DT
><DT
><A
HREF="function.odbc-free-result.html"
>odbc_free_result</A
>&nbsp;--&nbsp;Free resources associated with a result</DT
><DT
><A
HREF="function.odbc-gettypeinfo.html"
>odbc_gettypeinfo</A
>&nbsp;--&nbsp;Returns a result identifier containing information about data types supported by the data source</DT
><DT
><A
HREF="function.odbc-longreadlen.html"
>odbc_longreadlen</A
>&nbsp;--&nbsp;Handling of LONG columns</DT
><DT
><A
HREF="function.odbc-next-result.html"
>odbc_next_result</A
>&nbsp;--&nbsp;Checks if multiple results are available</DT
><DT
><A
HREF="function.odbc-num-fields.html"
>odbc_num_fields</A
>&nbsp;--&nbsp;Number of columns in a result</DT
><DT
><A
HREF="function.odbc-num-rows.html"
>odbc_num_rows</A
>&nbsp;--&nbsp;Number of rows in a result</DT
><DT
><A
HREF="function.odbc-pconnect.html"
>odbc_pconnect</A
>&nbsp;--&nbsp;Open a persistent database connection</DT
><DT
><A
HREF="function.odbc-prepare.html"
>odbc_prepare</A
>&nbsp;--&nbsp;Prepares a statement for execution</DT
><DT
><A
HREF="function.odbc-primarykeys.html"
>odbc_primarykeys</A
>&nbsp;--&nbsp;Returns a result identifier that can be used to fetch the column names that comprise the primary key for a table</DT
><DT
><A
HREF="function.odbc-procedurecolumns.html"
>odbc_procedurecolumns</A
>&nbsp;--&nbsp;Retrieve information about parameters to procedures</DT
><DT
><A
HREF="function.odbc-procedures.html"
>odbc_procedures</A
>&nbsp;--&nbsp;Get the list of procedures stored in a specific data source</DT
><DT
><A
HREF="function.odbc-result-all.html"
>odbc_result_all</A
>&nbsp;--&nbsp;Print result as HTML table</DT
><DT
><A
HREF="function.odbc-result.html"
>odbc_result</A
>&nbsp;--&nbsp;Get result data</DT
><DT
><A
HREF="function.odbc-rollback.html"
>odbc_rollback</A
>&nbsp;--&nbsp;Rollback a transaction</DT
><DT
><A
HREF="function.odbc-setoption.html"
>odbc_setoption</A
>&nbsp;--&nbsp;Adjust ODBC settings</DT
><DT
><A
HREF="function.odbc-specialcolumns.html"
>odbc_specialcolumns</A
>&nbsp;--&nbsp;Returns 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</DT
><DT
><A
HREF="function.odbc-statistics.html"
>odbc_statistics</A
>&nbsp;--&nbsp;Retrieve statistics about a table</DT
><DT
><A
HREF="function.odbc-tableprivileges.html"
>odbc_tableprivileges</A
>&nbsp;--&nbsp;Lists tables and the privileges associated with each table</DT
><DT
><A
HREF="function.odbc-tables.html"
>odbc_tables</A
>&nbsp;--&nbsp;Get the list of table names stored in a specific data source</DT
></DL
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.ociwritetemporarylob.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.odbc-autocommit.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>ociwritetemporarylob</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="funcref.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>odbc_autocommit</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>