adplus-dvertising
frame-decoration

Question

Find out the logical error in the following MySQL code snippet?
   CREATE TABLE person
   ( person_id VARCHAR(20),
    Name VARCHAR (20),
    Address VARCHAR (20),
    Mobile_no  SMALLINT 
    );

a.

Lesser number of columns

b.

Incorrect definition

c.

Primary key is missing

d.

None of the mentioned

Posted under MySQL Database

Answer: (c).Primary key is missing

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Find out the logical error in the following MySQL code snippet?

Similar Questions

Discover Related MCQs

Q. What is the meaning of “REFERENCES” in table definition?

Q. What default value gets stored in columns of the table?

Q. Which Statement is used to insert the values in the table?

Q. Is it necessary to insert the value in each column of the table?

Q. Which statement can be used for modifying the definition for an existing table?

Q. Which feature is used for the automatic increment of the column?

Q. Which among the following is the correct syntax for modifying the definition of an existing table?

Q. What is the default value of column?

Q. Which statement is used to select columns and rows from the table?

Q. Which Clause is used to select a particular row from the set of row in an existing table?

Q. Which Clause is used to sort the stored data in alphabetical order?

Q. Which Clause is used to select a particular table in Mysql?

Q. Which command is used to show all tables that are stored in a database?

Q. Which among the following is the correct syntax for showing all tables in the database?

Q. Which statement is used for updating existing information in the table?

Q. Which statement is used to delete an existing row from the table?

Q. “INSERT” is same as “UPDATE”?

Q. Which clause is used to rename the existing table?

Q. Which of the following functions are not performed by “ALTER” clause?