Sophie

Sophie

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

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
>Constants</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="PDO Driver How-To"
HREF="internals.pdo.html"><LINK
REL="PREVIOUS"
TITLE="pdo_stmt_t definition"
HREF="internals.pdo.pdo_stmt_t.html"><LINK
REL="NEXT"
TITLE="Error handling"
HREF="internals.pdo.error-handling.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="sect1"
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="internals.pdo.pdo_stmt_t.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>章 45. PDO Driver How-To</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="internals.pdo.error-handling.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="internals.pdo.constants"
>Constants</A
></H1
><DIV
CLASS="table"
><A
NAME="internals.pdo.table.attributes"
></A
><P
><B
>表 45-1. Database and Statement Attributes Table</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL
WIDTH="3"
TITLE="c1"><COL
WIDTH="3"
TITLE="c2"><TBODY
><TR
><TD
>&#13;      <P
>Attribute</P
>
     </TD
><TD
>&#13;      <P
>Valid value(s)</P
>
     </TD
></TR
><TR
><TD
>&#13;      <P
>PDO_ATTR_AUTOCOMMIT</P
>
     </TD
><TD
>&#13;      <P
>BOOL</P
>
      <P
>TRUE if autocommit is set, FALSE otherwise. </P
>
      <P
>dbh-&#62;auto_commit contains value. Processed by PDO directly.</P
>
     </TD
></TR
><TR
><TD
>&#13;      <P
>PDO_ATTR_PREFETCH</P
>
     </TD
><TD
>&#13;      <P
>LONG</P
>
      <P
>Value of the prefetch size in drivers that support it.</P
>
     </TD
></TR
><TR
><TD
>&#13;      <P
>PDO_ATTR_TIMEOUT</P
>
     </TD
><TD
>&#13;      <P
>LONG</P
>
      <P
>How long to wait for a db operation before timing out.</P
>
     </TD
></TR
><TR
><TD
>&#13;      <P
>PDO_ATTR_ERRMODE</P
>
     </TD
><TD
>&#13;      <P
>LONG</P
>
      <P
>Processed and handled by PDO</P
>
     </TD
></TR
><TR
><TD
>&#13;      <P
>PDO_ATTR_SERVER_VERSION</P
>
     </TD
><TD
>&#13;      <P
>STRING</P
>
      <P
>The <SPAN
CLASS="QUOTE"
>"human-readable"</SPAN
> string representing the
      Server/Version this driver is currently connected to.</P
>
     </TD
></TR
><TR
><TD
>&#13;      <P
>PDO_ATTR_CLIENT_VERSION</P
>
     </TD
><TD
>&#13;      <P
>STRING</P
>
      <P
>The <SPAN
CLASS="QUOTE"
>"human-readable"</SPAN
> string representing the Client/Version this driver supports.</P
>
     </TD
></TR
><TR
><TD
>&#13;      <P
>PDO_ATTR_SERVER_INFO</P
>
     </TD
><TD
>&#13;      <P
>STRING</P
>
      <P
>The <SPAN
CLASS="QUOTE"
>"human-readable"</SPAN
> description of the Server.</P
>
     </TD
></TR
><TR
><TD
>&#13;      <P
>PDO_ATTR_CONNECTION_STATUS</P
>
     </TD
><TD
>&#13;      <P
>LONG</P
>
      <P
>Values not yet defined</P
>
     </TD
></TR
><TR
><TD
>&#13;      <P
>PDO_ATTR_CASE</P
>
     </TD
><TD
>&#13;      <P
>LONG</P
>
      <P
>Processed and handled by PDO.</P
>
     </TD
></TR
><TR
><TD
>&#13;      <P
>PDO_ATTR_CURSOR_NAME</P
>
     </TD
><TD
>&#13;      <P
>STRING</P
>
      <P
>&#13;       String representing the name for a database cursor for use in
       <SPAN
CLASS="QUOTE"
>"where current in &#60;name&#62;"</SPAN
> SQL statements.
      </P
>
     </TD
></TR
><TR
><TD
>&#13;      <P
>PDO_ATTR_CURSOR</P
>
     </TD
><TD
>&#13;      <P
>LONG</P
>
      <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
>PDO_CURSOR_FWDONLY</DT
><DD
><P
>Forward only cursor</P
></DD
><DT
>PDO_CURSOR_SCROLL</DT
><DD
><P
>Scrollable cursor</P
></DD
></DL
></DIV
>
     </TD
></TR
></TBODY
></TABLE
></DIV
><P
>&#13;  The values for the attributes above are all defined in terms of the Zend
  API. The Zend API contains macros that can be used to convert a *zval to a
  value. These macros are defined in the Zend header file, zend_API.h in the
  Zend directory of your PHP build directory. Some of these attributes can be
  used with the statement attribute handlers such as the PDO_ATTR_CURSOR and
  PDO_ATTR_CURSOR_NAME. See the statement attribute handling functions for
  more information.
 </P
></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="internals.pdo.pdo_stmt_t.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="internals.pdo.error-handling.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>pdo_stmt_t definition</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="internals.pdo.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Error handling</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>