Chapter 32. sql - execute an sql command

sql [-u login] [-l password] [-q] [-h] source sql query

Execute an sql command on the given data source. The result of the query will be printed into stdout. If the -q switch is not given a copyright notice and a header line will be printed out.

Table 32-1. Options

-u login [-l password] The login name used for the database associated with the source name. This makes only sense if the contents of a certain data source has to be checked, since the login/passwd is only sent once and it will be applied to all given data sources, which is proably not correct.
-q Run quiet by not printing out the copyright and other notices.
-h Print out a help message.