1.

What is the purpose of ALTER TABLE command in MySQL? How is it different from UPDATE command?

Answer»

ALTER TABLE command is used to modify the structure of a table.

ALTER TABLEUPDATE TABLE
It is a DDL command.It is a DML command
Changes the table structure.Changes the values of  tuples in a table.
Syntax: ALTER TABLE <> ADD COLUMN <> <>.UPDATE TABLE <> SET <> = <>.



Discussion

No Comment Found

Related InterviewSolutions