Neoview Command Interface (NCI) Guide (R2.3)
SQL>set prompt %mode:
SQL:
• This command displays the session host name and port number for the prompt:
SQL>set prompt %server>
neo0101.mylab.mycorp.net:18650>
• This command displays the session schema for the prompt:
SQL>set prompt "Schema %schema:"
Schema USR:
• This command displays the session data source for the prompt:
SQL>set prompt "%datasource SQL>"
TDM_Default_DataSource SQL>
• This command displays multiple session variables:
SQL>set prompt %USER@%SCHEMA>
super.super@USR>
SQL> set prompt %SERVER@DATASOURCE>
nci0101:23000@TDM_Default_DataSource>
SQL>set prompt ”%schema NCI> ”
NVSCHEMA NCI>
For more information, see “Customizing the Standard Prompt” (page 63).
SET SQLPROMPT Command
The SET SQLPROMPT command sets the SQL prompt of the current session to a specified string.
The default is SQL>.
Syntax
SET SQLPROMPT [string] [%USER] [%MODE] [%SERVER]
[%SCHEMA] [%DATASOURCE]
string
is a string value to be displayed as the SQL prompt. The string may contain any characters.
Spaces are allowed if you enclose the string in double quotes. If you do not enclose the string
in double quotes, the prompt is displayed in uppercase.
%USER
displays the session user name as the prompt.
%MODE
displays the operating mode of the session as the prompt.
%SERVER
displays the session host name and port number as the prompt.
%SCHEMA
displays the session schema as the prompt.
%DATASOURCE
displays the session data source as the prompt.
SET SQLPROMPT Command 127