Find the error in the following SQL statement? [code] CREATE TABLE person ( person_id SMALLINT, name varchar, last varchar CONSTRAINTS

Huỳnh Hiền

New member
Find the error in the following SQL statement?
Code:
CREATE TABLE person
( person_id SMALLINT, name varchar, last varchar
  CONSTRAINTS pk_person PRIMARY KEY (person_id));
  INSERT INTO person
  VALUES( person_id, name, last)
  (1, ’s’, ’p’);
  INSERT INTO person
  ( person_id, name, last)
  VALUES(1,’s’,’p’);
A. No error
B. Error, Duplicate value
C. Any other error
D. None of the mentioned
 

Tìm kiếm

Back
Top