how to add new columns in already created table ??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to add new columns in already created table ???

i was unable to search how to create new column in already created table.

9th Nov 2016, 8:44 AM
TalHa
TalHa - avatar
3 Answers
+ 5
ALTER TABLE table_name ADD column_name datatype E.g Alter Table Employee Add Mail_Id varchar(100)
9th Nov 2016, 8:53 AM
Akwin Lopez
Akwin Lopez - avatar
+ 2
You must use the ALTER TABLE statement, I let you check the specific syntax by yourself (as it depends on the SQL library that you use).
9th Nov 2016, 8:49 AM
Sleuvin S
Sleuvin S - avatar
0
thanks bro. really helpfull
9th Nov 2016, 8:55 AM
TalHa
TalHa - avatar