adplus-dvertising
frame-decoration

Question

Which keyword is used to delete all the rows from the table?

a.

TRUNCATE

b.

REMOVE

c.

DELETE ALL

d.

CLEAR

Posted under MySQL Database

Answer: (a).TRUNCATE

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which keyword is used to delete all the rows from the table?

Similar Questions

Discover Related MCQs

Q. What is known as the set of SQL statements that either executes successfully or none of them have an effect?

Q. What is generally done after the transactions are executed successfully?

Q. What is generally done if an error occurs during the transaction?

Q. What does ā€˜Aā€™ stand for in the ACID property of transactions?

Q. What does ā€˜Cā€™ stand for in the ACID property of transactions?

Q. What is the command to disable autocommit and launch a transaction?

Q. Transactional processing provides strong guarantees about the outcome of operations.

Q. Transactional processing requires lesser overhead due to CPU cycles and memory.

Q. What is the durability property of transactions?

Q. How many storage engines among the following are transaction-safe?

InnoDB, Falcon, MyISAM, MEMORY

Q. Which key declares that an index in one table is related to that in another?

Q. Foreign keys cannot handle deletes and updates.

Q. Deletion of an employee from table also deletes that employee from another table. This kind of delete is called ____________

Q. Which storage engine in MySQL provides foreign key support?

Q. The property of InnoDB that enforces foreign key relationships stay intact is called _____________

Q. Which clause names the parent table and the index columns in the table?

Q. If the storage engine InnoDB is not used, foreign key cannot be used.

Q. Which clause is used to remove a foreign key constraint?

Q. Which keyword is used to specify the foreign key after the table is created?

Q. Which clause in the SQL standard controls how NULL values in a composite foreign key are handled when comparing to a primary key.