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.
IBFC full form
Union Minister of Petroleum & Natural Gas Hardeep Singh Puri inaugurated Asia’s largest Compressed Bio Gas (CBG) plant in ________.
A, B and C can individually finish a job in 10, 15 and 6 days, respectively. If all of them work together, in how many days will they finish the job?
How many seats JD(U) have won in recently held Bihar election?
In how many states does the PM Mega Integrated Textile Regions and Apparel (PM MITRA) scheme is implemented?
Which is a specialised excretory cell found in Platyhelminthes that acts like a kidney, removing waste material through filtration?
As of October 2020, who is the Chief Election Commissioner of India?
The RBI announced to appoint an Internal Ombudsman for the Non-Deposit taking NBFCs (NBFCs-ND) with asset size of ______ crore
Who among the following was the minister who helped King Ashoka acquire the throne?
When South Africa joined this group?