PHP Doku:: Retrieves information about data types supported by the data source - function.odbc-gettypeinfo.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAbstraktionsebenenODBC (Unified)ODBC Funktionenodbc_gettypeinfo

Ein Service von Reinhard Neidl - Webprogrammierung.

ODBC Funktionen

<<odbc_free_result

odbc_longreadlen>>

odbc_gettypeinfo

(PHP 4, PHP 5)

odbc_gettypeinfoRetrieves information about data types supported by the data source

Beschreibung

resource odbc_gettypeinfo ( resource $connection_id [, int $data_type ] )

Retrieves information about data types supported by the data source.

Parameter-Liste

connection_id

Eine ODBC-Verbindungsressource, siehe odbc_connect() für Details.

data_type

The data type, which can be used to restrict the information to a single data type.

Rückgabewerte

Returns an ODBC result identifier or FALSE on failure.

The result set has the following columns:

  • TYPE_NAME
  • DATA_TYPE
  • PRECISION
  • LITERAL_PREFIX
  • LITERAL_SUFFIX
  • CREATE_PARAMS
  • NULLABLE
  • CASE_SENSITIVE
  • SEARCHABLE
  • UNSIGNED_ATTRIBUTE
  • MONEY
  • AUTO_INCREMENT
  • LOCAL_TYPE_NAME
  • MINIMUM_SCALE
  • MAXIMUM_SCALE

The result set is ordered by DATA_TYPE and TYPE_NAME.


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
andrea dot galli at acotel dot com
29.04.2003 18:45
Example: display all data types

<?php

     $Link_ID
= odbc_connect("DSN", "user", "pass");
    
$result = odbc_gettypeinfo($Link_ID);

    
odbc_result_all($result);

?>



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)