LinuxCommandLibrary

mdb-sql

executes SQL queries on Access databases

TLDR

Query database

$ mdb-sql [database.mdb]
copy
Execute SQL
$ echo "[SELECT * FROM table]" | mdb-sql [database.mdb]
copy
Interactive mode
$ mdb-sql -p [database.mdb]
copy
Specify delimiter
$ mdb-sql -d [,] [database.mdb]
copy
No headers
$ mdb-sql -H [database.mdb]
copy

SYNOPSIS

mdb-sql [options] database

DESCRIPTION

mdb-sql executes SQL queries on Access databases. It provides SQL interface to MDB files.
The tool is part of mdbtools. It supports basic SELECT, INSERT, UPDATE operations.

PARAMETERS

DATABASE

Microsoft Access database file.
-p
Pretty print output.
-d DELIM
Field delimiter.
-H
Suppress headers.
--help
Display help information.

CAVEATS

Limited SQL support. Part of mdbtools. May not support all Access features.

HISTORY

mdb-sql is part of mdbtools for accessing Microsoft Access databases on Linux/Unix.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community