Question
Which of the following database operations is used to
remove all records from a table but not the table itself?Solution
The TRUNCATE operation in SQL is used to remove all rows from a table without affecting the table structure. Unlike the DELETE operation, which removes rows one at a time and can be rolled back if used with a transaction, TRUNCATE is a more efficient way to delete all records in a table because it does not generate individual row delete statements. TRUNCATE resets any identity columns and typically cannot be rolled back in most database management systems unless within a transaction. Option 1 (DELETE) removes rows from a table but allows for specific conditions (such as WHERE clauses) to filter which rows to delete. Unlike TRUNCATE, DELETE can be rolled back if wrapped in a transaction. Option 2 (DROP) removes the entire table from the database, including its structure, and is more drastic than TRUNCATE. Option 4 (REMOVE) is not a valid SQL operation. Option 5 (ALTER) is used to modify the structure of a table, such as adding or deleting columns, but it does not remove data from the table.
The term āheterosisā was first coined by:
What is the critical irrigation stage in rice where moisture deficiency can lead to maximum reduction in grain yield?
Sols which are rich in volcanic ash?Ā
Part of the cell wall of endodermal cells prevents water from moving into the cell is calledĀ
Non ionizing radiation includes
Which of the following is a major weed of wheat fields that closely resembles the crop during the early growth stages, making manual identification diff...
Arrange these Govt. schemes as per year of start (old to recent)
(A) Community Development Program
(B) Training and Visit Program
(...
Which one of the following is the resultant of a thin cloud of varying size found on the surface of the earth by condensation of atmospheric vapour?Ā
Identify the artificial growth inhibitor from below.
What is the primary purpose of drainage systems in Agriculture?