HenPlus is a SQL shell written in Java that works for any database that has JDBC support. It provides commandline history, commandline completion, and can handle multiple connects to different databases at once. Database-independant table dumps, aliases, and variables are also supported.
BUSH (Business Shell) combines the capabilities of BASH, PHP, GCC, and databases into a uniform design for rapidly building secure, reliable Web sites. Based on an ISO standard, it promotes code reuse: scripts and templates can be compiled with GCC or ported to JVM or .Net using third party tools with only minor changes. It can also replace BASH as an interactive command shell with SQL support, and is a general purpose scripting language.