adplus-dvertising
frame-decoration

Question

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

a.

ALTER TABLE person MODIFY person_id SMALLINT UNSIGNED AUTO_INCREMENT;

b.

ALTER TABLE person person_id SMALLINT UNSIGNED AUTO_INCREMENT;

c.

ALTER TABLE person MODIFY person_id ;

d.

ALTER TABLE person

Posted under MySQL Database

Answer: (a).ALTER TABLE person MODIFY person_id SMALLINT UNSIGNED AUTO_INCREMENT;

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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