odbc_gettypeinfo

int odbc_gettypeinfo(resource conn, [int datatype]) 

Displays datatype information.

Returns:

Result identifier; FALSE on error

Description:

Displays all information on a supported datatype from the ODBC provider. If the optional datatype is not specified, all datatypes are displayed. A number of columns are returned by this function. Using odbc_result_all() to display the results from this function is an excellent way to review the results returned, as well as getting an overview of the supported datatypes.

Version:

Existing since version 4.0

Example:

Display all datatypes
$db = odbc_connect("DSN","user","pass"); 
$result = odbc_gettypeinfo($db); 
odbc_result_all($result); 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.