Which of the following is the correct syntax for creating a table in SQL ?

2025

Which of the following is the correct syntax for creating a table in SQL ?

  1. A.

    CREATE TABLE table_name (column1 datatype, column2 datatype,...);

  2. B.

    ADD TABLE table_name (column1 datatype, column2 datatype, ...);

  3. C.

    NEW TABLE table_name (column1 datatype, column2 datatype,...);

  4. D.

    TABLE CREATE table_name (column1 datatype, column2 datatype,...)

Attempted by 115 students.

Show answer & explanation

Correct answer: A

The correct syntax for creating a table in SQL is CREATE TABLE followed by the table name and column definitions. This statement defines the structure including data types for each column within parentheses.

Explore the full course: Niacl Ao It Specialist