nerdexam
Oracle

1Z0-882 · Question #14

The city table has the following structure: Consider the statement with an incorrect field name: PREPARE countryBYID FROM `SELECT country FROM city WHERE ID=?, What happens if a prepared statement…

The correct answer is C. An unknown column error will result and no prepared statement named countryByID will exist. See the full explanation below for the reasoning.

Question

The city table has the following structure:

Consider the statement with an incorrect field name:

PREPARE countryBYID FROM `SELECT country FROM city WHERE ID=?, What happens if a prepared statement named countryByID already exists when the above statement is executed?

Exhibit

1Z0-882 question #14 exhibit

Options

  • AA duplicate name error will result because a prepared statement with the same name already
  • BAn unknown column error will result and the old prepared statement definition will remain in
  • CAn unknown column error will result and no prepared statement named countryByID will exist.
  • DA warning will result and the old prepared statement definition will remain in effect.

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    12% (3)
  • C
    77% (20)
  • D
    8% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-882 Practice