SQLLine is a pure-Java console-based utility for connecting to relational databases and executing SQL commands. It is similar to other command-line database access utilities like sqlplus for Oracle, mysql for MySQL, and isql for Sybase/SQL Server. Since it is pure-Java, it is platform independent and will run on any platform that can run Java 1.3 or higher.
SQLLine is a pure-Java console-based utility for connecting to relational databases and executing SQL commands. It is similar to other command-line database access utilities like sqlplus for Oracle, mysql for MySQL, and isql for Sybase/SQL Server. Since it is pure-Java, it is platform independent and will run on any platform that can run Java 1.3 or higher.
The simplest method for installing SQLLine in a platform independant way is as follows:
Create a new directory/folder where you like. This will be referred to as sqllinedir.
Download sqlline.jar into sqllinedir.
Download the latest jline.jar from https://jline.github.io/ into sqllinedir.
Download your database's JDBC driver files into sqllinedir. Note that some JDBC drivers require some installation, such as uncompressing or unzipping.
For various commands, you may refer http://sqlline.sourceforge.net/#issuing_sql