Go to the first, previous, next, last section, table of contents.


Import and Export

To share your records with other databases MUIbase offers a way to import and export records to and from other databases. Import and export is done by reading and writing ASCII files. Therefore the data you want to import must be in a special format described in the following section.

File format

For importing records into MUIbase all records of a table must be available in a single ASCII file. If you want to import records of several tables you must have several import files, one for each table.

An import file consists of lines and columns. Lines are separated by a record delimiter, columns by a field delimiter. The delimiters can be specified in the import and export requesters. As the record fields itself may already contain these delimiters it is possible to use double quotes around all fields to protect them.

The import file must have the following structure:

Sample import file

The following sample import file uses \n and \t as record and field delimiter and double quotes around all fields. The file can be imported into a table with the following attributes:


"Name"	"NumChildrens"	"Feminine"	"Job"	"Notes"
"Janet Jackson"	"???"	"TRUE"	"Musician"	"Latest CD: The velvet rope"
"Bernt Schiele"	"???"	"NIL"	"Scientist"	"Research interests:
Robotics, Autonomy and Computer Vision"
"Gerhard"	"0"	"NIL"	"Precision mechanic"	""

Importing records

To import records into the active table select menu item `Table - Import records'. This will open a window containing

If you press the `Import' button, MUIbase will load the specified file and import all found records. If everything is going fine, MUIbase will ask you after the import process if you really want to add the imported records to the table. At this point you can still cancel the operation.

If an error occurs while reading the import file then an error message is generated.

If you need a more sophisticated import routine it is recommended to write your own import routine as a MUIbase program.

Exporting records

To export records from the active table select menu item `Table - Export records'. This will open a window containing

After you pressed the `Export' button, MUIbase will open the specified file and write out the records including a header line containing the attribute names. The export feature always writes all attribute fields of a table to the export file.

For a more customized export routine, you can use MUIbase' query editor (see section Data retrieval) or you write your own export function as a MUIbase program.


Go to the first, previous, next, last section, table of contents.