mdb-schema(1)
π mdb-schema(1) π
okay bestie, pull up a chair, because we're talking about mdb-schema β a whole manual page, and yes it's the one from section 1 of the Executable programs or shell commands girlies. this is your group-chat crash course, no gatekeeping, periodt. β¨
πΈ NAME πΈ
mdb-schema β generate schema creation DDL. that's it, that's the whole vibe. it makes the DDL. π
π¦ SYNOPSIS π¦
mdb-schema [options] [-T tablename] [-N prefix] database [backend]
mdb-schema -h|--help
mdb-schema --version
like, look at her. so structured. so iconic. π
β¨ DESCRIPTION β¨
so mdb-schema is a utility program that ships with MDB Tools π
what does she do?? she produces DDL (that's data definition language, iykyk) output for the database you hand her. and then β and this is the main character part β you can pass that output to a different database to create a replica of the original access table format. literally cloning the fit. π«Ά
π OPTIONS π
okay here's the menu, bestie. every single one, no skipping, we're not doing the thing where we pretend half the options don't exist. π
-T,--tabletablename β single table option. creates the schema for this table only. the default is to export all tables, so this is your "just the one, thanks" button. π-N,--namespaceprefix β prefix identifiers with namespace. give everything a little name tag. π·οΈ--drop-tableβ issueDROP TABLEstatement.--no-drop-tableβ don't issueDROP TABLEstatement. this is the default. (so if you wanted dropping, you gotta ask, bestie.)--not-nullβ issueNOT NULLconstraints. this is the default.--no-not-nullβ don't issueNOT NULLconstraints.--default-valuesβ issueDEFAULTvalues.--no-default-valuesβ don't issueDEFAULTvalues. this is the default.--not-emptyβ issueCHECK <> ''constraints.--no-not-emptyβ don't issueCHECK <> ''constraints. this is the default.--commentsβ issueCOMMENT ONstatements with column/table descriptions. this is the default, but lowkey it's not supported by all backends, so don't come for her if your target database acts brand new about it. π--no-commentsβ don't issueCOMMENT ONstatements.--indexesβ exportINDEXes. this is the default. π₯--no-indexesβ don't exportINDEXes.--relationsβ export foreign keys constraints. this is the default.--no-relationsβ don't export foreign keys constraints.--versionβ print the mdbtools version and exit. slay and dip. πbackendβ specifies target DDL dialect. supported values areaccess,sybase,oracle,postgres,mysqlandsqlite. if you don't specify one, the generated DDL will be inaccessformat. no cap. π
π ENVIRONMENT π
the environment variables, aka the backstage crew. they're doing the work and nobody claps for them. we see you. π
MDB_JET3_CHARSETβ defines the charset of the input JET3 (access 97) file. default isCP1252. seeiconv(1). β¨MDBICONVβ defines the output charset to use for the SQL file. default isUTF-8. mdbtools must have been compiled with iconv. (compiled with it, bestie. she can't do it otherwise.)MDBOPTSβ colon-separated list of options:debug_likedebug_writedebug_usagedebug_oledebug_rowdebug_propsdebug_allis a shortcut for alldebug_*optionsno_memo(deprecated; has no effect) β it's giving retired. she's out. π«‘use_index(experimental; requires libmswstr) β experimental!! handle with care!! π§
π NOTES π
...the original page leaves this one absolutely empty. iconic of her honestly. nothing to report. moving on. π
π HISTORY π
mdb-schema first appeared in MDB Tools 0.1. a legend since day one. β
π¦ SEE ALSO π¦
go read these too, they're all in the same friend group:
mdb-array(1) mdb-count(1) mdb-export(1) mdb-header(1) mdb-hexdump(1) mdb-import(1) mdb-json(1) mdb-parsecsv(1) mdb-prop(1) mdb-queries(1) mdb-sql(1) mdb-tables(1) mdb-ver(1)
π«Ά AUTHORS π«Ά
The mdb-schema utility was written by Brian Bruns and others. we stan. π
π BUGS π
okay so real talk, caveats, no filter:
- relationships and other features may not be supported by all databases.
- access datatypes are mapped to their closest counterparts in the target backend. and this may not always yield an exact fit β so like, it's a vibe match, not a twin. check your output, bestie, fr fr. π
π¨ reminder that the defaults are doing a LOT here:--no-drop-table,--not-null,--no-default-values,--no-not-empty,--comments,--indexesand--relationsare the ones switched on unless you say otherwise. don't be surprised when your DDL shows up withNOT NULLon it. π
that's the whole page, babes β go generate some DDL and be the main character of your own database migration. πΈβ¨π
this little love letter is brought to you by MDBTools 1.0.1, dated 13 July 2026 β mwah, xoxo, see you in the next manpage π ππ¦
π¦ 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