wiz-icon
MyQuestionIcon
MyQuestionIcon
2
You visited us 2 times! Enjoying our articles? Unlock Full Access!
Question

TRUNCATE statement in SQL is a ____________.

A
DML statement
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
DDL statement
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
DCL statement
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
None of these
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B DDL statement

TRUNCATE statement in SQL is a DDL statement.

The TRUNCATE TABLE statement is a Data Definition Language (DDL) operation that marks the extents of a table for deallocation. The result of this operation quickly removes all data from a table, typically bypassing a number of integrity enforcing mechanisms.

A data definition language (DDL) is a computer language used to create and modify the structure of database objects in a database. These database objects include views, schemas, tables, indexes, etc.



flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Database Structuring
ACCOUNTANCY
Watch in App
Join BYJU'S Learning Program
CrossIcon