.\" Text automatically generated by txt2man .TH mdb-sql 1 "22 March 2018" "MDBTools 0.7.1" "Executable programs or shell commands" .SH NAME \fBmdb-sql \fP- SQL interface to MDB Tools \fB .SH SYNOPSIS .nf .fam C \fBmdb-sql\fP [\fB-HFp\fP] [\fB-d\fP \fIdelimiter\fP] [\fB-i\fP \fIfile\fP] [\fB-o\fP \fIfile\fP] [\fIdatabase\fP] .fam T .fi .fam T .fi .SH DESCRIPTION \fBmdb-sql\fP is a utility program distributed with MDB Tools. .PP \fBmdb-sql\fP allows querying of an MDB \fIdatabase\fP using a limited SQL subset language. .SH OPTIONS .TP .B \fB-H\fP Suppress header row. .TP .B \fB-F\fP Suppress footer row. .TP .B \fB-p\fP Turn off pretty printing. By default results are printed in an ascii table format which looks nice but is not conducive to manipulating the output with unix tools. This option prints output plainly in a tab separated format. .TP .B \fB-d\fP Specify an alternative column \fIdelimiter\fP. If no \fIdelimiter\fP is specified, columns will be delimited by a tab character if pretty printing (\fB-p\fP) is turned off. If pretty printing is enabled this option is meaningless. .TP .B \fB-i\fP Specify an input \fIfile\fP. This option allows an input \fIfile\fP containing the SQL to be passed to \fBmdb-sql\fP. See Notes. .TP .B \fB-o\fP Specify an output \fIfile\fP. This option allows the name of an output \fIfile\fP to be used instead of stdout. .SH COMMANDS \fBmdb-sql\fP in interactive mode takes some special commands. .TP .B connect to <\fIdatabase\fP> If no \fIdatabase\fP was specified on the command line this command is necessary before any querys are issued. It also allows the switching of databases once in the tool. .TP .B disconnect Will disconnect from the current \fIdatabase\fP. .TP .B go Each batch is sent to the parser using the 'go' command. .PP reset A batch can be cleared using the 'reset' command. .TP .B list tables The list tables command will display a list of available tables in this \fIdatabase\fP, similar to the mdb-tables utility on the command line. .TP .B describe table