Alter Mysql Table Add Column. To add a column in a table use the following syntax. ALTER TABLE - ADD Column.
For example assume that. Here let us see how to add an attribute of student which is the primary key in the student table as a foreign key in another table exam as follows. Follow edited Mar 20 18 at 1333.
MySQL Table Add New Column.
There was no index added because it. In this tutorial a detailed process is provided in steps to add a new column to an existing MySQL Table. The following ALTER TABLE ADD statement appends a new column to a table. Different database systems support the ALTER TABLE ADD COLUMN statement with some minor variances.