Question
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
Posted under MySQL Database
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Find the error in the following SQL statement?
Similar Questions
Discover Related MCQs
Q. Which Key is used to link two tables in Mysql?
View solution
Q. Which line of the following statements will produce error?
View solution
Q. Which compiler is used to execute the structured query language?
View solution
Q. Which among the following tags belong to Data definition language?
View solution
Q. Which among the following tags belong to Data Manipulation language?
View solution
Q. Query Mechanism performs the following functions?
View solution
Q. What jobs “Query Optimizer” perform in Mysql?
View solution
Q. Which are the two languages used in Mysql?
View solution
Q. The users responsible for query processing in database system are ___________
View solution
Q. Select the sequence for how the query mechanism works?
View solution
Q. Which clause is used to determine “which column to include in the query sets”?
View solution
Q. Which clause is used to “Identifies table from which to draw table and how the table should be joined”?
View solution
Q. Which clause is used to “Filters out unwanted data”?
View solution
Q. Which clause is used to “group rows together by common columns values”?
View solution
Q. Which clause is used to “filter out unwanted Groups”?
View solution
Q. Which clause is used to “sort the rows of the final result set by one or more columns”?
View solution
Q. Which clause is used to “Modify the existing field of the table”?
View solution
Q. Which among the following is not a “query clause”?
View solution
Q. “MODIFY” is used with which “Query clause”?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond MySQL Database? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!