1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)

Add A Column MySql Terminal Command

Add A Column MySql Terminal Command

To add a column in terminal just enter this command. Change the values for customization.

ALTER TABLE [table] ADD COLUMN [column] VARCHAR(120);

To Add A column with a unique auto increment id use this.

ALTER TABLE [table] ADD COLUMN [column] int NOT NULL AUTO_INCREMENT PRIMARY KEY;

Complete Cheat Sheet https://gist.github.com/hofmannsven/9164408

Please follow and like us:
Add A Column MySql Terminal Command was last modified: December 12th, 2016 by Maximus Mccullough

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.