Which database command is used to remove all records from a table but keep its structure?
A. DROP
B. TRUNCATE
C. ALTER
D. SELECT
Explanation:
TRUNCATE removes all records from a database table while keeping the table structure intact. It is generally faster than DELETE when the requirement is to clear the complete table.