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)- A6% (3)
- B9% (5)
- C2% (1)
- D83% (45)
Community Discussion
No community discussion yet for this question.