Neoview Command Interface (NCI) Guide (R2.5)
command-name
is the name of an NCI command that is supported in the current operating mode. If you do
not specify a command, NCI returns a list of all commands that are supported in the current
mode. If you specify SET, NCI returns a list of all SET commands that are supported in the
current mode. If you specify SHOW, NCI returns a list of all SHOW commands that are
supported in the current mode.
Considerations
You must enter the command on one line. The command does not require an SQL terminator.
Examples
• This HELP command lists all the commands that are supported in SQL mode:
SQL>help
• This HELP command lists all the SET commands that are supported in SQL mode:
SQL>help set
• This HELP command shows help text for SET IDLETIMEOUT:
SQL>help set idletimeout
• This HELP command lists all the SHOW commands that are supported in SQL mode:
SQL>help show
HISTORY Command
The HISTORY command displays recently executed commands, identifying each command by
a number that you can use to reexecute or edit the command.
Syntax
HISTORY [number]
number
is the number of commands to display. The default number is 10. The maximum number is
100.
Considerations
• You must enter the command on one line. The command does not require an SQL terminator.
• You can use the FC command to edit and reexecute a command in the history buffer, or use
the REPEAT command to reexecute a command without modifying it. See the “FC Command”
(page 84) or the “REPEAT Command” (page 103).
Example
Display the three most recent commands and use FC to redisplay one:
SQL>history 3
14> set schema sales;
15> show tables
16> show views
SQL>fc 14
SQL>set schema sales
....
Now you can use the edit capabilities of FC to modify and execute a different SET SCHEMA
statement.
HISTORY Command 89