exam questions

Exam 1z0-882 All Questions

View all questions & answers for the 1z0-882 exam

Exam 1z0-882 topic 1 question 36 discussion

Actual exam question from Oracle's 1z0-882
Question #: 36
Topic #: 1
[All 1z0-882 Questions]

Using the query:
SELECT Code FROM country WHERE Name = united states
Which statement executed in the mysql client would create a prepared statement?

  • A. PREPARE STATEMENT countrycode FROM ‘SELECT code FROM counyry WHERE Name =?.;
  • B. PREPARE countrycode As ‘SELECT code FROM country WHERE Name =?.;
  • C. PREPARE countrycode FROM ‘SELECT code FROM country WHERE Name =?.;
  • D. PREPARE STATEMENT countrycode As ‘SELECT code FROM country WHERE Name =?.;
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Reference:
http://www.timlin.net/csm/cis363/mysql18.html

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Gruiou
5 years, 4 months ago
This is the right answer but it's missing a quote. A full statement should look like this: PREPARE countrycode FROM "SELECT code FROM world.country WHERE Name = 'Aruba' ";
upvoted 1 times
Gruiou
5 years, 4 months ago
Well instead 'Aruba' you have '?'
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...