Sophie

Sophie

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

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_tables</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="ODBC Functions (Unified)"
HREF="ref.uodbc.html"><LINK
REL="PREVIOUS"
TITLE="odbc_tableprivileges"
HREF="function.odbc-tableprivileges.html"><LINK
REL="NEXT"
TITLE="ODBC and DB2 Functions (PDO_ODBC)"
HREF="ref.pdo-odbc.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="refentry"
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.odbc-tableprivileges.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="ref.pdo-odbc.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.odbc-tables"
></A
>odbc_tables</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN161742"
></A
><P
>    (PHP 3 &#62;= 3.0.17, PHP 4, PHP 5)</P
>odbc_tables&nbsp;--&nbsp;Get the list of table names stored in a specific data source</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN161745"
></A
><H2
>Description</H2
>resource <B
CLASS="methodname"
>odbc_tables</B
> ( resource connection_id [, string qualifier [, string owner [, string name [, string types]]]] )<BR
></BR
><P
>&#13;   Lists all tables in the requested range.  Returns an ODBC result
   identifier containing the information or <TT
CLASS="constant"
><B
>FALSE</B
></TT
> on failure.
  </P
><P
>&#13;   The result set has the following columns:
   <P
></P
><UL
><LI
><P
>TABLE_QUALIFIER</P
></LI
><LI
><P
>TABLE_OWNER</P
></LI
><LI
><P
>TABLE_NAME</P
></LI
><LI
><P
>TABLE_TYPE</P
></LI
><LI
><P
>REMARKS</P
></LI
></UL
>
  </P
><P
>&#13;   The result set is ordered by TABLE_TYPE, TABLE_QUALIFIER,
   TABLE_OWNER and TABLE_NAME.
  </P
><P
>&#13;   The <CODE
CLASS="parameter"
>owner</CODE
> and <CODE
CLASS="parameter"
>name</CODE
>
   arguments accept search patterns ('%' to match zero or more
   characters and '_' to match a single character).
  </P
><P
>&#13;   To support enumeration of qualifiers, owners, and table types,
   the following special semantics for the
   <CODE
CLASS="parameter"
>qualifier</CODE
>, <CODE
CLASS="parameter"
>owner</CODE
>,
   <CODE
CLASS="parameter"
>name</CODE
>, and
   <CODE
CLASS="parameter"
>table_type</CODE
> are available:
   <P
></P
><UL
><LI
><P
>&#13;      If <CODE
CLASS="parameter"
>qualifier</CODE
> is a single percent
      character (%) and <CODE
CLASS="parameter"
>owner</CODE
> and
      <CODE
CLASS="parameter"
>name</CODE
> are empty strings, then the result
      set contains a list of valid qualifiers for the data
      source. (All columns except the TABLE_QUALIFIER column contain
      NULLs.)
     </P
></LI
><LI
><P
>&#13;      If <CODE
CLASS="parameter"
>owner</CODE
> is a single percent character
      (%) and <CODE
CLASS="parameter"
>qualifier</CODE
> and
      <CODE
CLASS="parameter"
>name</CODE
> are empty strings, then the result
      set contains a list of valid owners for the data source. (All
      columns except the TABLE_OWNER column contain
      NULLs.)
     </P
></LI
><LI
><P
>&#13;      If <CODE
CLASS="parameter"
>table_type</CODE
> is a single percent
      character (%) and <CODE
CLASS="parameter"
>qualifier</CODE
>,
      <CODE
CLASS="parameter"
>owner</CODE
> and <CODE
CLASS="parameter"
>name</CODE
>
      are empty strings, then the result set contains a list of
      valid table types for the data source. (All columns except the
      TABLE_TYPE column contain NULLs.)
     </P
></LI
></UL
>
  </P
><P
>&#13;   If <CODE
CLASS="parameter"
>table_type</CODE
> is not an empty string, it
   must contain a list of comma-separated values for the types of
   interest; each value may be enclosed in single quotes (') or
   unquoted. For example, "'TABLE','VIEW'" or "TABLE, VIEW".  If the
   data source does not support a specified table type,
   <B
CLASS="function"
>odbc_tables()</B
> does not return any results for
   that type.
  </P
><P
>&#13;   See also <A
HREF="function.odbc-tableprivileges.html"
><B
CLASS="function"
>odbc_tableprivileges()</B
></A
> to retrieve
   associated privileges.
  </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="function.odbc-tableprivileges.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="ref.pdo-odbc.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>odbc_tableprivileges</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.uodbc.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>ODBC and DB2 Functions (PDO_ODBC)</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>