Entering content frame

 SQLCLI 

The SQLCLI is a database tool that enables database users to perform the following tasks:

·        Access data

·        Access the database catalog

·        Make SQL queries

·        Create and manage database objects

·        Create and manage database users

Syntax

sqlcli [–n <database_server>] [-d <database_name>] [-u database_user>,<database_user_password>] [sqlcli_command|sql_command]

sqlcli_command

SQLCLI command

sql_command

SQL statement

To get a list of all SQLCLI commands and their options, use the following command:

sqlcli \h

Examples

Querying general information about the database HOTELDB as user MONA with the password RED:

sqlcli –d HOTELDB –u MONA,RED \s

Displaying all data records in the table customer in the database HOTELDB as user MONA with the password RED:

sqlcli -d HOTELDB -u MONA,RED SELECT * FROM customer

 

See also:

SQL Studio

Web SQL Studio

 

Leaving content frame