SQL Constraints fits as DML or as DDL?

1

DDL - Data definition language: is used to create and change tables (CREATE, ALTER, etc.), right?

DML - Data manipulation language: is used for data manipulation of tables (INSERT, UPDATE, DELETE, SELECT).

Do CONSTRAINTS fall into the DDL category?

    
asked by anonymous 22.02.2018 / 17:08

1 answer

3

Yes, the contraints fall into this category. They are used in creating tables to ensure rules about the fields you are creating, an example is primary key or null support.

    
22.02.2018 / 17:23