1.

Which command allows the removal of all rows from a table but flushes a table more efficiently since no rollback information is retained:(a) TRUNCATE command(b) Create command(c) Drop table command(d) Alter table commandThe question was posed to me during an online interview.The origin of the question is DDL Command in section SQL Basics of Oracle

Answer»

Right choice is (a) TRUNCATE command

Easy explanation: The SQL TRUNCATE TABLE command is USED to delete complete data from an EXISTING table.You can ALSO use DROP TABLE command to delete complete table but it would remove complete table structure form the database and you would need to re-create this table once again if you WISH you store some data.



Discussion

No Comment Found

Related InterviewSolutions