KnowledgeBoat Logo

Computer Science

Consider the following SQL statement. What type of statement is this ?

CREATE TABLE employee (name VARCHAR, id INTEGER)
  1. DML
  2. DDL
  3. DCL
  4. Integrity constraint

DDL & DML

3 Likes

Answer

DDL

Reason — The SQL statement CREATE TABLE employee (name VARCHAR, id INTEGER) is a Data Definition Language (DDL) statement. DDL statements are used to define, modify, and delete database objects such as tables, views, indexes, etc. In this case, the statement is creating a new table named employee with columns, name of type VARCHAR and id of type INTEGER.

Answered By

1 Like


Related Questions