DDL
DDL
DDL
constraint level
ALTER COMMAND IS USED FOR ALTERING THE TABLE STRUCTURE, SUCH AS,
Using ALTER command we can add a column to any existing table. Following is the syntax,
ALTER TABLE table_name
ADD column_name datatype;
Using ALTER command we can even add multiple new columns to any existing table.
Here is an Example for this,
The above query will delete all the records from the table student.
DROP command
DROP command completely removes a table from the database. This command will also
destroy the table structure and the data stored in it. Following is its syntax,
The above query will drop the database with name Test from the system.