mdbtools provides read access to MDB data files as used by Microsoft Access and its underlying JetEngine. It is based on libmdb from the mdbtools package available at http://mdbtools.sourceforge.net/
This extension requires the following library: mdb
This extension requires the following header: mdbtools.h
Table 1. mdbtools constants
name | value | descrpition |
---|---|---|
MDB_VER_JET3 (integer) | MDB_VER_JET3 | |
MDB_VER_JET4 (integer) | MDB_VER_JET4 | |
MDB_BOOL (integer) | MDB_BOOL | Type 'Boolean' |
MDB_BYTE (integer) | MDB_BYTE | Type 'Byte' |
MDB_INT (integer) | MDB_INT | Type 'Integer' |
MDB_LONGINT (integer) | MDB_LONGINT | Type 'Long Integer' |
MDB_MONEY (integer) | MDB_MONEY | Type 'Currency' |
MDB_FLOAT (integer) | MDB_FLOAT | Type 'Single' |
MDB_DOUBLE (integer) | MDB_DOUBLE | Type 'Double' |
MDB_SDATETIME (integer) | MDB_SDATETIME | Type 'DateTime (Short)' |
MDB_TEXT (integer) | MDB_TEXT | Type 'Text' |
MDB_OLE (integer) | MDB_OLE | Type 'OLE' |
MDB_MEMO (integer) | MDB_MEMO | Type 'Memo/Hyperlink' |
MDB_REPID (integer) | MDB_REPID | Type 'Replication ID' |
MDB_NUMERIC (integer) | MDB_NUMERIC | Type 'Numeric' |
(no version information, might be only in CVS)
mdb_fetch_assoc -- Get a table row as an associative arraymdb_fetch_row() reads a single row from table and returns the data as an array with column names as index and field contents as values.
See also mdb_fetch_row().
(no version information, might be only in CVS)
mdb_fetch_row -- Get a table row as an enumerated arraymdb_fetch_row() reads a single row from table and returns the data as an numericaly indexed array.
See also mdb_fetch_assoc().
mdb_num_fields() returns the number of columns in table.
See also mdb_num_rows() and mdb_table_fields().
mdb_num_rows() returns the number of rows in table.
See also mdb_num_fields() and mdb_table_fields().
Open the MDB file path for reading.
See also mdb_close().
(no version information, might be only in CVS)
mdb_table_fields -- Get field type information for all fields in a tablemdb_num_fields() returns type information about all columns in table. It returns an array with one element per column that itself is an array of name/value pairs describing the column.
Currently name, type, size, prec, scale and isfixed are extracted.
type is returned as an integer. The following constants correspond to the returned type codes: MDB_BOOL, MDB_BYTE, MDB_INT, MDB_LONGINT, MDB_MONEY, MDB_FLOAT, MDB_DOUBLE, MDB_SDATETIME, MDB_TEXT, MDB_OLE, MDB_MEMO, MDB_REPID and MDB_NUMERIC.
See also mdb_type_name().
(no version information, might be only in CVS)
mdb_table_open -- Open a table in an .mdb file for readingReturn the names of all tables within the database db as an array of strings. Internal system tables like MSysObjects are ignored unless the optional parameter systabs is set to TRUE.
Return the names of all tables within the database db as an array of strings. Internal system tables like MSysObjects are ignored unless the optional parameter systabs is set to TRUE.
mdb_type_name() returns the textual type name for the typecode in database db.