NAME
sqlsh - SQL shell
SYNOPSIS
sqlsh -d DBI:Oracle:DEVDB -u scott -p tiger
DESCRIPTION
sqlsh is an interactive shell run from the command-line for working with databases. This is a terse summary for quick reference. For a full description see SQL::Shell::Manual. For a list of commands, type:
help
at the prompt after running sqlsh. If you pass a username with -u and don't pass a password with -p, sqlsh will prompt you for a password. You can pass a blank password with -p if required (-p followed by nothing).
OPTIONS
-d <DSN>
-u <username>
-p <password>
-i - read list of commands from STDIN
-q - quiet (no banner)
-H - help
COMMANDS ADDED BY SQLSH
cat|more|less <file> - display file
help|? - show this
reload - reload the shell
exit|quit|bye|\w+ off - quit the shell
READLINE MODE
This script uses Term::Readline. Term::Readline sets the editing mode (vi/emacs) based on the user's .inputrc, or the $EDITOR
environment variable.
This script will set $EDITOR based on $PERL_READLINE_MODE or bash's $SHELLOPTS variable. Any .inputrc editing-mode
declaration still takes precedence.
VERSION
$Revision: 1.50 $ on $Date: 2006/12/05 11:38:47 $ by $Author: andreww $
AUTHOR
John Alden with contributions by Simon Flack <cpan _at_ bbc _dot_ co _dot_ uk>
COPYRIGHT
(c) BBC 2006. This program is free software; you can redistribute it and/or modify it under the GNU GPL.
See the file COPYING in this distribution, or http://www.gnu.org/licenses/gpl.txt