ADOdb Library for PHP Manual
Prev MetaColumns Next

MetaColumns($table, $notcasesensitive=true)

Returns an array of ADOFieldObject's, one field object for every column of $table. A field object is a class instance with (name, type, max_length) defined. Currently Sybase does not recognise date types, and ADO cannot identify the correct data type (so we default to varchar).

The $notcasesensitive parameter determines whether we uppercase or lowercase the table name to normalize it (required for some databases). Does not work with MySQL ISAM tables.

For schema support, pass in the $table parameter, "$schema.$tablename". This is only supported for selected databases.


Prev Home Next
MetaTables Up MetaColumnNames

Sponsored by phpLens