Oracle
1Z0-082 · Question #63
You want to write a query that prompts for two column names and the WHERE condition each time it is executed in a session but only prompts for the table name the first time it is executed. The…
The correct answer is B. SELECT &col1, &col2. See the full explanation below for the reasoning.
SQL and PL/SQL
Question
You want to write a query that prompts for two column names and the WHERE condition each time it is executed in a session but only prompts for the table name the first time it is executed. The variables used in your query are never undefined in your session. Which query can be used?
Options
- ASELECT &&col1, &&col2
- BSELECT &col1, &col2
- CSELECT &col1, &col2
- DSELECT
&&col1',&&col2' - ESELECT &&col1, &&col2
How the community answered
(40 responses)- A8% (3)
- B83% (33)
- C5% (2)
- D3% (1)
- E3% (1)
Topics
#substitution variables#&&#& single ampersand#SQL*Plus prompting
Community Discussion
No community discussion yet for this question.