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.
Sodium adsorption ratio is a measure of the amount of sodium (Na) relative to calcium (Ca) and magnesium (Mg) in the water extract. Which of the followi...
The grape variety "Sonaka" used for which purpose?
Agranal chloroplasts are found in _____
When was the Community Projects Administration established under the Planning Commission?
According to USDA classification of salt affected soils; a soil having EC >4 mmho/cm; ESP >15; pH>8.5 will be called asÂ
An acute or chronic inflammation of the mammary gland caused by physical, chemical and biological agents chiefly of bovines usually affecting the secret...
In the context of wind erosion, which phase involves particles bouncing along the ground surface?
Which of the following describes a frameshift mutation?
White leghorn is a poultry breed famous for
A hermaphrodite flower isÂ