Which SQL command is used to create a new table in a database?

Options

  • A. INSERT
  • B. CREATE
  • C. UPDATE
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. CREATE

Detailed Explanation

  • CREATE TABLE is a DDL command.
  • It creates a new table with specified columns and data types.
  • Example: CREATE TABLE students (id INT, name VARCHAR(50));