Continue with your mobile number
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.
Which Indian port became the leading cargo-handling major port in the fiscal year 2023-24?
Which educational project is Coal India Limited partnering with EdCIL to implement?
What is the total prize pool for the Hockey India Awards 2023?
Which organization has imposed penalties on five co-operative banks for contravening regulatory norms?
What is the PM-GatiShakti National Master Plan aimed at?
Who was honored with the Major Dhyan Chand Lifetime Achievement Award at the Hockey India Awards 2023?
What is the main objective behind setting up 100 new Sainik Schools?
What is the purpose of the new amendments in wildlife trade rules by the Union Environment Ministry?
Which company's CEO announced the 'Bharat GPT' initiative?
What is the main focus of the Hyperloop facility being developed in Tamil Nadu?