+ 3

what should I do to add new column to the table ?

14th Jul 2016, 12:55 AM
విఠల్ N
7 ответов
+ 7
Graphyically you can do. If you need to add using Query you can try this Alter Table TableName add ColumnName datatype; for example if I want to add ColumnName Say Name in Student Table then Alter table Student add Name Varchar(20);
14th Jul 2016, 6:57 AM
Manu
+ 6
It is ALTER table ie you are modifying in table structure DDL(Data Definition Language) query not DML(Data Manipulation Language).
14th Jul 2016, 6:50 PM
Suryaprakash Tiwari
Suryaprakash Tiwari - avatar
+ 3
If u care about the position of the column being added, then u can use the following syntax: ADD [COLUMN] col_name column_definition [FIRST | AFTER col_name ] E.g.: Alter Table Person Add Column MiddleName VARCHAR(100) AFTER FirstName
4th Sep 2016, 6:56 AM
Nagarajan Chinnasamy
Nagarajan Chinnasamy - avatar
+ 2
you should read 8th block in 3rd lesson from sql course "sololearn sql"
20th Jul 2016, 12:52 PM
Алексей Афанасьев
Алексей Афанасьев - avatar
+ 1
correct
16th Jan 2017, 4:36 PM
Jithin Jose
Jithin Jose - avatar
+ 1
Use Alter
17th Jan 2017, 1:41 AM
vikash
0
enth
19th Jan 2017, 4:17 PM
ranjith renjzz
ranjith renjzz - avatar