Which Of The Following Statement Can Be Used To Apply The #367
Which of the following statement can be used to apply the primary key constraint to a column?
This multiple choice question (MCQ) is related to the book/course gs gs115 Structured Query Language. It can also be found in gs gs115 SQL Constraints - SQL Primary Key - Quiz No.1.
Which of the following statement can be used to apply the primary key constraint to a column?
CREATE TABLE table_name ( column1 datatype NOT NULL PRIMARY KEY, column2 datatype, ... columnn datatype);
CREATE TABLE table_name ( PRIMARY KEY column1 datatype NOT NULL, column2 datatype, ... columnn datatype);
CREATE TABLE table_name PRIMARY KEY ( column1 datatype NOT NULL, column2 datatype, ... columnn datatype);
CREATE TABLE table_name ( column1 datatype NOT NULL PRIMARY KEY, column2 datatype, ... columnn datatype PRIMARY KEY (column1));