Enter:
SELECT * FROM Departments
Press F9.
The contents of the department database table appear in the Data window. As you execute commands with Interactive SQL Classic (dbisql), they are saved in a command history.
To recall commands, choose Command | Recall from the menu bar to activate the command recall window.
The command recall window displays the first line of the last 15 commands executed.
Position the cursor on the first command that you executed, which was:
SELECT * FROM Employees
and press Enter. The cursor returns to the command window with the selected command in it. You can either reexecute that command, or modify it to make a new command.
Alternatively, there are several key sequences, listed in Table 3-4, you can use to recall previous commands.
Key sequence |
Description |
---|---|
Ctrl+r |
Brings up the command recall window |
Ctrl+p |
Cycles backwards through previously executed commands. Retrieved commands are placed into the command window |
Ctrl+n |
Cycles forward through previously executed commands |