QuestionQ222Verified/Retrieving data using the SQL SELECT statementCopy linkReport a problemAsk AstroTutorSave questionWhich set of commands prompts only once for the name of the table used in the query?APROMPT Enter table name &x -SELECT employee_id FROM &x WHERE last_name = ‘King’;BDEFINE x = ‘employees’PROMPT Enter table name &x -SELECT employee_id FROM &x WHERE last_name = ‘King’;CPROMPT Enter table name &x -SELECT employee_id FROM &&x WHERE last_name = ‘King’;DPROMPT Enter table name &&x -SELECT employee_id FROM &x WHERE last_name = ‘King’;Show AnswerAnswerExplanationIn SQL*Plus, an undefined &&x substitution variable prompts for a value and stores that value as x. A later &x reference uses the stored value without another prompt. Oracle SQL*Plus: Using Substitution VariablesLearn moreOracle SQL*Plus: Using Substitution VariablesShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion