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.
Who has been appointed as NITI Aayog’s new Vice Chairman in May 2022?
Which of the following is NOT a primary objective of the National Financial Awareness Program in India?
1 ) Promoting financial literacy among...
Which of the following institutions was formed in 1960 to assist the poor countries which could not afford to borrow capital at market rates?
What is the metric unit of pressure that is equal to 0.986923 atm?
The colour of the alluvial soils varies from ________
The Comprehensive Crop Insurance Scheme (CCIS) was started from 1985 with the objective of providing _______.
Which one of the following statements is not true about United Nations Sustainable Development Goals (UNSDG)?
The natural vegetation of India is broadly divided into ________ groups.
The old parliament house which is officially known as Samvidhan Sadan was under which legislature till 1947?