Machine-translated by Google. Questions are authored in English.
Top

Discussion

Create table employee (name varchar ,id integer) What type of statement is this ?

  • A.DML
  • B.DDL
  • C.View
  • D.Integrity constraint

Answer: B

Correct answer: DDL

CREATE TABLE defines a new relation, naming its attributes and their domains, so it is a Data Definition Language statement.

The test is what the statement acts on: DDL changes the structure of the database, DML changes the data within it. Nothing is stored by this statement - it produces an empty table awaiting rows. The declaration name varchar is worth noticing as incomplete in standard SQL, which requires a length as varchar(n).

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.