Home | Previous Page | Next Page   The Query-language Option > Running an SQL Statement >

Viewing Successful Results

If a statement other than a query completes successfully, a message appears at the bottom of the screen. For the statement that Figure 11 shows, the following message appears:

Table created.

If you use the Run option with a SELECT statement and that SELECT statement runs correctly, DB–Access displays the requested results below the header. If your query retrieves more rows than can fit on a single screen, the results screen has a menu at the top, as Figure 12 shows.

Figure 12. The Menu for Displaying Additional Query Results
RUN:   Next  Restart Exit
Display the next page of query results.

------------------ mystores@dbserver1 -------------- Press CTRL-W for Help ------

customer_num  106
call_dtime    1997-06-12 08:20
user_id       maryj
call_code     D
call_descr    Order was received, but two of the cans of ANZ tennis balls within
              the case were empty
res_dtime     1997-06-12 08:25
res_descr     Authorized credit for two cans to customer, issued apology. Called 
              ANZ buyer to report the QA problem.

customer_num  110
call_dtime    1997-07-07 10:24
user_id       richc
call_code     L
call_descr    Order placed one month ago (6/7) not received.
res_dtime     1997-07-07 10:30
res_descr     Checked with shipping (Ed Smith). Order sent yesterday- we were 
            waiting for goods from ANZ. Next time will call with delay if 
              necessary.
Note:
When running a query that returns more than one screen of data, it is important to note that a cursor is still open and its corresponding locks are still held until all data is returned.

Advance through the output as follows:

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]