mdb-export(1)
π mdb-export π
okay bestie, so this is mdb-export(1), one of the Executable programs or shell commands, and it is literally the moment your dusty old Access database finally gets to leave the house. she exports tables to CSV, she does SQL, she's versatile. we love her. π
β¨ NAME β¨
mdb-export β export the data living inside an MDB database table, straight into CSV format. periodt. π
π¦ SYNOPSIS π¦
mdb-export [--no-header] [--delimiter delim] [--row-delimiter delim] [[--no-quote] | [--quote char [--escape char]]] [--escape-invisible] [--date-format fmt] [--datetime-format fmt] [--bin strip|raw|octal|hex] [--boolean-words] database table
mdb-export --insert backend [--namespace prefix] [--batch-size int] database table
mdb-export -h|--help
mdb-export --version
like, that's the whole vibe right there. database and table, always. π
πΈ DESCRIPTION πΈ
mdb-export is a utility program distributed with MDB Tools. she's part of the family π«Ά
So what she does: she produces a CSV (comma separated value) output for the table you asked for. And that output? It's suitable for importation into databases or spreadsheets. so like, you can just... take it places. it's giving portable. π
And then β plot twist β when you use her with --insert, she outputs SQL specific to your chosen backend dialect, and she's not lazy about it either. she includes some constraints like NOT NULL and foreign keys. highkey thorough. π₯
π OPTIONS π
-H,--no-headerβ suppresses the header row. no labels, just vibes. π-d,--delimiter delimβ pick a different column delimiter. default is,(comma), as the universe intended.-R,--row-delimiter delimβ set a row delimiter. default is\n(ASCII value 10). classic.-Q,--no-quoteβ don't wrap text-like fields (text, memo, date) in quotes. if you don't specify this, those text fields get surrounded by"(double quote) characters. so it's a whole either/or situation, iykyk.-q,--quote charβ use char to wrap text-like fields. default is"(double quote).-X,--escape charβ use char to escape quoted characters within a field. default is doubling. that's just what she does. β¨-e,--escape-invisibleβ use C-style escaping for return (\r), tab (\t), line-feed (\n), and back-slash (\\) characters. default is to leave as they are. no touchy.-I,--insert backendβ outputsINSERTstatements instead of CSV. you must specify which SQL backend dialect to use. allowed values are:access,sybase,oracle,postgres,mysqlandsqlite. pick your fighter. π₯-N,--namespace prefixβ prefix identifiers with prefix. cute little name tag for everything. π·οΈ-S,--batch-size intβ size of insert batches on supported platforms. know your limits bestie.-D,--date-format fmtβ set the date format (seestrftime(3)for details.-T,--datetime-format fmtβ set the date/time format (seestrftime(3)for details.-0,--null charβ use char to represent aNULLvalue. the void, but make it a character. π-b,--bin strip|raw|octal|hexβ binary export mode: strip binaries, export as-is, output\ooostyle octal data or output\xxstyle hexadecimal data. four whole personalities.-B,--boolean-wordsβ useTRUE/FALSEin Boolean fields (default is0/1). yes, she'll spell it out for you. π--versionβ print the mdbtools version and exit. quick little hello, then she's gone. π
π NOTES π
Most of the formatting options actually also works with --insert. so like, don't gatekeep them to CSV only. they're flexible. π«
π ENVIRONMENT π
MDB_JET3_CHARSETβ defines the charset of the input JET3 (access 97) file. default isCP1252. seeiconv(1). she's multilingual, obviously. π¦MDBICONVβ defines the output charset to use for the SQL file. default isUTF-8. mdbtools must have been compiled with iconv. if she wasn't built with it... yeah. no iconv for you. πMDBOPTSβ colon-separated list of options:debug_likedebug_writedebug_usagedebug_oledebug_rowdebug_propsdebug_allis a shortcut for alldebug_*optionsno_memo(deprecated; has no effect) β she's retired, don't call her. β°οΈuse_index(experimental; requires libmswstr) β experimental!! handle with care bestie. π§ͺ
π SEE ALSO π
mdb-array(1) mdb-count(1) mdb-header(1) mdb-hexdump(1) mdb-import(1) mdb-json(1) mdb-parsecsv(1) mdb-prop(1) mdb-queries(1) mdb-schema(1) mdb-sql(1) mdb-tables(1) mdb-ver(1)
the whole friend group. go say hi. π«Ά
β HISTORY β
mdb-export first appeared in MDB Tools 0.1. an icon from the very beginning. π
π AUTHORS π
The mdb-export utility was written by Brian Bruns. king behavior. π
π BUGS π
Memo fields are allowed to contain a newline characters, and the current program does nothing about this. not me finding out the hard way π like she simply does not care. she will not be fixing it in this manual page. forewarned is forearmed, bestie. π
and that's the whole page!! this was written for MDBTools 1.0.1, dated 13 July 2026, and honestly? she ate. now go export something, you main character. π§β¨π
π¦ where this page comes from
- fedora 43: mdbtools 1.0.1-1.fc43 Β· GPL-2.0-or-later
- fedora 44: mdbtools 1.0.1-1.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms