KnowledgeBoat Logo
|

Informatics Practices

What is the use of UPDATE statement in SQL ? How is it different from ALTER statement ?

SQL Queries

7 Likes

Answer

The UPDATE statement is used to modify existing records in a table. It specifies the rows to be changed using the WHERE clause, and sets the new data using the SET keyword. In contrast, the ALTER statement is used to modify the structure of a table, such as adding, modifying, or deleting columns, and adding or dropping constraints.

Answered By

3 Likes


Related Questions