nerdexam
Oracle

1Z0-882 · Question #33

You have access to a MySQL 5.6 database with the SELECT ,INSERT, and DELETE privileges on all tables in the mydb database. The mydb database. The mydb t1 table has five rows of data. You use the…

The correct answer is D. The command fails owing to permissions error. See the full explanation below for the reasoning.

Question

You have access to a MySQL 5.6 database with the SELECT ,INSERT, and DELETE privileges on all tables in the mydb database. The mydb database. The mydb t1 table has five rows of data. You use the statement below to remove all rows in the t1 table:

Mysql> TRUNCATE TABLE mysql.t1; What is the result?

Options

  • AThe command succeeds and o rows are affected.
  • BThe command succeeds and five rows are affected.
  • CThe command fails owing to syntax error.
  • DThe command fails owing to permissions error.

How the community answered

(54 responses)
  • A
    6% (3)
  • B
    9% (5)
  • C
    2% (1)
  • D
    83% (45)

Community Discussion

No community discussion yet for this question.

Full 1Z0-882 Practice