2003-01-05 22:57:50 +08:00
NAME
mdb-export - Export data in an MDB database table to CSV format.
2011-08-29 07:53:29 +08:00
2003-01-05 22:57:50 +08:00
SYNOPSIS
2012-07-09 03:52:19 +08:00
mdb-export [-H] [-d delimiter] [-R row_delim] [[-Q] | [-q quote [-X escape]]] [-I backend] [-D format] [-N namespace] database table
2003-01-05 22:57:50 +08:00
DESCRIPTION
mdb-export is a utility program distributed with MDB Tools.
It produces a CSV (comma separated value) output for the given table. Such output is suitable for importation into databases or spreadsheets.
OPTIONS
-H Supress header row
-Q Don't wrap text-like fields (text, memo, date) in quotes. If not specified text fiels will be surrounded by " (double quote) characters.
2012-01-30 19:07:08 +08:00
-d Specify an alternative column delimiter If no delimiter is specified, table names will be delimited by a , (comma) character.
2005-09-08 07:27:43 +08:00
-R Specify a row delimiter
2012-06-29 21:00:01 +08:00
-I backend INSERT statements (instead of CSV). You must specify which SQL backend dialect to use. Allowed values are: access, sybase, oracle, postgres and mysql.
2005-09-08 07:27:43 +08:00
-D Set the date format (see strftime(3) for details)
-q Use to wrap text-like fields. Default is ".
-X Use to escape quoted characters within a field. Default is doubling.
2012-01-30 19:07:08 +08:00
-N namespace Prefix identifiers with namespace.
2005-09-08 07:27:43 +08:00
2003-01-05 22:57:50 +08:00
NOTES
2011-08-29 07:53:29 +08:00
ENVIRONMENT
MDB_JET3_CHARSET Defines the charset of the input JET3 (access 97) file. Default is CP1252. See iconv(1).
MDBICONV Defines the output charset to use for the SQL file. Default is UTF-8. mdbtools must have been compiled with iconv.
MDBOPTS semi-column separated list of options:
* use_index
* no_memo
* debug_like
* debug_write
* debug_usage
* debug_ole
* debug_row
* debug_props
* debug_all is a shortcut for all debug_* options
2012-02-02 16:25:21 +08:00
SEE ALSO
gmdb2(1) mdb-hexdump(1) mdb-prop(1) mdb-sql(1) mdb-ver(1) mdb-array(1)
mdb-header(1) mdb-parsecsv(1) mdb-schema(1) mdb-tables(1)
2003-01-05 22:57:50 +08:00
HISTORY
2012-02-02 16:25:21 +08:00
mdb-export first appeared in MDB Tools 0.1.
2003-01-05 22:57:50 +08:00
AUTHORS
2012-02-02 16:25:21 +08:00
The mdb-export utility was written by Brian Bruns.
2003-01-05 22:57:50 +08:00
BUGS
Memo fields are allowed to contain a newline characters, the current program does nothing about this.