What is difference between Update and Alter commands?

Hiiii,

What is difference between Update and Alter commands?

Update changes data in a table
Alter changes the metadata of the table (e.g. column definitions)

1 Like

ALTER is a DDL statement used to update the structure of the table.
UPDATE is a DML statement used to update data.

1 Like

Sounds like an interview question to quickly find out if someone can actually spell "T-SQL". :wink: