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 [2021/03/09 10:16] – [Description] type can be string or ADOFieldObject, dregadv5:dictionary:metatype [2021/03/09 10:40] – [Usage] Added example from recorset fetchField dregad
Line 20: Line 20:
 */ */
  
-print $db->metaType('VARCHAR');+print $db->metaType('VARCHAR');  // Returns 'C' 
 /* /*
-* Returns 'C+ Using an Field Object from a recordset 
-*/+ */ 
 +$rs = $db->execute('SELECT id FROM table'); 
 +$field = $rs->fetchField(0); 
 +print $rs->metaType($field->type); // Returns 'I
 +print $rs->metaType($field); // Returns 'I'
 </code> </code>
 +
v5/dictionary/metatype.txt · Last modified: 2021/03/09 10:41 by dregad