Home / Programming MCQs / MySQL MCQs / Question

J

Jatin Dubey • 3.78K Points
Extraordinary

Q. Which of the following is the correct syntax to add a field using alter command?

(A) ALTER TABLE table_name ADD field_name data type;
(B) ALTER TABLE table_name, field_name data type;
(C) ALTER TABLE field_name data type;
(D) None of these
Explanation by: Jatin Dubey
To add a field using alter statement following syntax should be followed:

ALTER TABLE table_name ADD field_name data type;

You must be Logged in to update hint/solution

Discusssion

Login to discuss.