ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v6:dictionary:metatype

V6 Provider: \ADOdb\database\drivers\[driver]\ADOMetaFunctions

metaType

Syntax
string metaType(
       mixed $dataType
       )

Description

The function metaType() accepts as an argument a database specific datatype, usually the result of a call to fetchField() and returns an ADOdb datatype, which provides a mapping to allow cross-database compatibility. The compatible fields are explained Here

Usage

/*
* Connection to mysql database
*/
 
print $db->metaType('VARCHAR');
/*
* Returns 'C'
*/
v6/dictionary/metatype.txt · Last modified: by 127.0.0.1