ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:dictionary:metatype

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'
*/
v5/dictionary/metatype.txt · Last modified: 2017/04/30 21:58 by mnewnham