Start learning 50% faster. Sign in now
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 last phase of which disease is known as "lockjaw"?
Which of the following is not a vector-borne disease?
Two capacitors of capacitance 6 µF and 3 µF are connected in series across a battery of constant voltage.
The charges stored on the two capaci...
Which of the following statement is correct?
I. Speed of sound in steel is more than the speed of sound in glass.
II. Speed of sound ...
Two waves, each of amplitude 1.5 mm and frequency 10 Hz, are travelling in opposite direction with a speed of 20 mm/s. The distance in mm between adjace...
Two parallel wires of length 10 cm each are separated by a distance of 0.5 cm in a liquid. If the distance between them is increased by 2 mm, how much w...
For what was Albert Einstein awarded Nobel Prize?
A projectile is fired at an angle of 45° with a speed of 20 m/s. What is the maximum height reached? (Take g = 10 m/ s² )
Who among the following developed the technology of under-ground nuclear explosion?