ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:dictionary:metatype

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
v5:dictionary:metatype [2017/04/21 11:49] – external edit 127.0.0.1v5:dictionary:metatype [2017/04/30 21:58] mnewnham
Line 9: Line 9:
 ===== Description ===== ===== Description =====
 The function ''metaType()'' accepts as an argument a database specific datatype, usually the result of a call to [[v5:reference:recordset:fetchfield|fetchField()]] and returns an ADOdb datatype, which provides a mapping to allow cross-database compatibility. The compatible fields are explained [[v5:dictionary:dictionary_index#Summary_Of_Types|Here]] The function ''metaType()'' accepts as an argument a database specific datatype, usually the result of a call to [[v5:reference:recordset:fetchfield|fetchField()]] and returns an ADOdb datatype, which provides a mapping to allow cross-database compatibility. The compatible fields are explained [[v5:dictionary:dictionary_index#Summary_Of_Types|Here]]
 +===== Usage =====
 +<code php>
 +/*
 +* Connection to mysql database
 +*/
 +
 +print $db->metaType('VARCHAR');
 +/*
 +* Returns 'C'
 +*/
 +</code>
v5/dictionary/metatype.txt · Last modified: 2021/03/09 10:41 by dregad