CONNECT Table Types Overview

You are viewing an old version of this article. View the current version here.

CONNECT can handle very many table formats; it is indeed one of its main features. The Type option specifies the type and format of the table. The Type option available values and their description are listed in the following table:

TypeDescription
DOSThe table is contained in one or several files. The file format can be refined by some other options of the command or more often using a specific type as many of those described below. Otherwise, it is a flat text file where columns are placed at a fixed offset within each record, the last column being of variable length.
FIXText file arranged like DOS but with fixed length records.
BINBinary file with numeric values in platform representation, also with columns at fixed offset within records.
VECBinary file organized in vectors, in which column values are grouped consecutively, either split in separate files or in a unique file.
DBF*File having the dBASE format.
CSV*"Comma Separated Values" file in which each variable length record contains column values separated by a specific character (defaulting to the comma)
FMTFile in which each record contains the column values in a non-standard format (the same for each record) This format is specified in the column definition.
INIFile having the format of the initialization or configuration files used by many applications.
XMLFile having the XML or HTML format.
ODBC*Table extracted from an application accessible via ODBC or unixODBC. For example from another DBMS or from an Excel spreadsheet.
MYSQL*Table accessed using the MySQL API like the FEDERATED engine.
PROXY*A table based on another table existing on the current server.
TBL*Accessing a collection of tables as one table (like the MERGE engine does for MyIsam tables)
XCOL*A table based on another table existing on the current server with one of its column containing of comma separated values.
OCCURA table based on another table existing on the current server, several columns of the object table containing values that can be grouped in only one column.
DIRVirtual table that returns a file list like the Unix ls or DOS dir command.
WMI*Windows Management Instrumentation table displaying information coming from a WMI provider. This type enables to get in tabular format all sort of information about the machine hardware and operating system (Windows only).
MACVirtual table returning information about the machine and network cards (Windows only).
OEMTable of any other formats not directly handled by CONNECT but whose access is implemented by an external plugin module (DLL or Shared Library).

Catalog Tables

For all table types marked with a ‘*’ in the table above, CONNECT is able to analyze the data source to retrieve the column definition. This can be used to define a “catalog” table that display the column description of the source, or to create a table without specifying the column definition that will be automatically constructed by CONNECT when creating the table.

These types and how to use them is described in CONNECT Data Types.

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.