Which SQL command removes all rows from a table but leaves the table structure and its columns intact, without logging individual row deletions?
-
A
DROP
-
B
DELETE
-
C
REMOVE
-
D
TRUNCATE
Correct answer
Correct answer
D. TRUNCATE
11 views
Explanation
TRUNCATE removes all rows by deallocating data pages without logging individual deletions. Source: mcqsghar.com, Q5.
Reference
Asked in: FPSC,CSS,NTS,PPSC,PMS
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ