Using command recall in dbisqlc

  1. Enter:

    SELECT * FROM Departments
    
  2. Press F9.

    The contents of the department database table appear in the Data window. As you execute commands with dbisqlc, they are saved in a command history.

  3. To recall commands, choose Command > Recall from the menu bar to activate the command recall window.

  4. The command recall window displays the first line of the last 15 commands executed.

  5. 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 2-7, you can use to recall previous commands.

Table 2-7: dbisqlc recall keys

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