SQLTeX is a preprocessor that enables the use of SQL statements
in LaTeX. The SQLTeX perl script reads an input file containing
the LaTeX source with SQL commands, and writes a LaTeX file in
which the SQL commands have been replaced by the values from
their execution. It is possible to select a field for
substitution in your LaTeX document, or to be used as input in
another SQL command. (When an SQL command returns multiple
fields and/or rows, the values can only be used within the
document.) The default is to use MySQL databases, but Pg,
Sybase, Oracle, Ingres, mSQL and PostgreSQL are also supported.