CentOS 7.0 - man page for iusql (centos section 1)
|Linux & Unix Commands - Search Man Pages
isql(1) UnixODBC manual pages isql(1)
isql, iusql - unixODBC command-line interactive SQL tool
isql DSN [USER [PASSWORD]] [options]
isql is a command line tool which allows the user to execute SQL in batch or interac-
tively. It has some interesting options such as an option to generate output wrapped in an
iusql is the same tool with built-in Unicode support.
DSN The Data Source Name, which should be used to make connection to the database. The
data source is looked for in the /etc/odbc.ini and $HOME/.odbc.ini files in that
order, with the latter overwriting the former.
USER Specifies the database user/role under which the connection should be made.
Password for the specified USER.
-b Run isql in non-interactive batch mode. In this mode, the isql processes its stan-
dard input, expecting one SQL command per line.
Delimits columns with delimiter.
-xHEX Delimits columns with HEX, which is a hexadecimal code of the delimiting character
in the format 0xNN - i.e. 0x09 for the TAB character.
-w Format the result as HTML table.
-c Output the names of the columns on the first row. Has any effect only with the -d
or -x options.
-mNUM Limit the column display width to NUM characters.
Sets locale to LOCALE.
-q Wrap the character fields in double quotes.
-3 Use the ODBC 3 calls.
-n Use the newline processing.
-e Use the SQLExecDirect instead of Prepare.
-k Use SQLDriverConnect.
-v Turn on the verbose mode, where the errors are fully described. Useful for debug-
Prints the program version and exits.
This section briefly describes some isql runtime commands.
List all tables in the database.
List all columns in the table.
List all help options.
$ isql WebDB MyID MyPWD -w -b < My.sql
Connects to the WebDB as user MyID with password MyPWD, then execute the commands in the
My.sql file and returns the results wrapped in HTML table. Each line in My.sql must con-
tain exactly 1 SQL command, except for the last line, which must be blank (unless the -n
option is specified).
System-wide DSN definitions. See odbc.ini(5) for details.
User-specific DSN definitions. See odbc.ini(5) for details.
The authors of unixODBC are Peter Harvey <firstname.lastname@example.org> and Nick Gorham
<email@example.com>. For the full list of contributors see the AUTHORS file.
unixODBC is licensed under the GNU Lesser General Public License. For details about the
license, see the COPYING file.
version 2.3.1 Tue 25 Jun 2013 isql(1)
All times are GMT -4. The time now is 05:48 AM.