RE: what is ALTER TABLE?HOW WE USE IT TO ADD A N...
Alter is a DDL command which is used to change the structure of the table.We cant add a new row using the alter but we can do with insert which is a DML command.
RE: what is ALTER TABLE?HOW WE USE IT TO ADD A N...
Alter table is DDL language which is allow us to edit table schema. The syntax is following: alter table <tablename> <add/subtract/modify> <column_name> <datatype(length)>;
RE: what is ALTER TABLE?HOW WE USE IT TO ADD A N...
to insert a column in a table dml command should be used i.e. INSERT. A column cannot inserted in a table through ALTER command - only the data in a table is modified thru alter.