The following table shows all the SQLCLI commands that can be entered during interactive operation.
Instead of an SQLCLI command, you can also enter an SQL statement. For an introduction to the SQL statements available, see the SQL tutorial [External]. For a detailed overview of the syntax and semantics of SQL statements, see the reference manual [External].
Command |
Meaning |
\! <shell_command> |
|
\? \h[elp] |
To display all SQLCLI commands |
\a[utocommit] [ON|OFF] |
Activates or deactivates the AUTOCOMMIT mode [External] |
\al[ign] [ON|OFF] |
Activates or deactivates the formatted output of results from SQL statements |
\c[onnect] |
|
\dc [PATTERN] |
Lists all the table columns that correspond to the pattern PATTERN; see Requesting Information About Database Objects (Page 11) |
\de [PATTERN] |
Lists all the indexes for database objects that correspond to the pattern PATTERN |
\di[sconnect] |
Logs off the database instance |
\dp [PATTERN] |
Lists all the data procedures that correspond to the pattern PATTERN |
\dt [PATTERN] |
Lists all the tables that correspond to the pattern PATTERN |
\du [NAME] |
Lists all the database users that correspond to the pattern PATTERN |
\dv [PATTERN] |
Lists all the views that correspond to the pattern PATTERN |
\e[dit] [<file_name>] |
Edits the command buffer (Page 8), in the file <file_name>, using an external editor |
\f[ieldsep] <separator> |
Uses the separator character to separate the individual results fields |
\g |
Executes the commands in the command buffer and outputs the results |
\i[nput] <file_name> |
Reads commands from a batch file (Page 6). The complete path must be specified. |
\m[ode] <INTERNAL|ORACLE|ANSI|DB2> |
Changes the SQL mode [External] |
\o[utput] <file_name> |
|
\p[rint] |
Displays the current command buffer |
\q[uit] |
Exits SQLCLI |
\r[eset] |
Deletes the current command buffer |
\ro[wsep] <separator> |
Uses the separator character to separate the individual results rows |
\s[tatus] |
Displays general information about the database instance |