Difficulty: Easy
Correct Answer: LIST
Explanation:
Introduction:
SQLPlus keeps a working copy of your most recent SQL or PL/SQL input in an internal buffer. Quickly viewing this buffer avoids retyping and helps with iterative development. This question checks your knowledge of the command used to display the buffer content.
Given Data / Assumptions:
Concept / Approach:
The LIST command (shorthand L) prints the current contents of the SQLPlus buffer to the screen with line numbers. From there you can use APPEND, CHANGE, or EDIT to modify the text, or RUN/; to execute it. LIST is distinct from SHOW, which reports settings (for example, SHOW ALL), and from DESCRIBE (DESC), which inspects object metadata.
Step-by-Step Solution:
1) At the prompt, type LIST to display the buffered SQL.2) Confirm that the statement shown matches what you intend to execute.3) Make edits if necessary using EDIT or in-line editing commands.4) Execute with RUN or a terminating semicolon.
Verification / Alternative check:
HELP LIST in SQLPlus documents the command and its options, including listing specific line ranges.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing LIST with SHOW; SHOW does not print the SQL buffer. Also, remember that the buffer persists only within the current SQL*Plus session.
Final Answer:
LIST
Discussion & Comments