English

Differentiate between the following statement: ALTER and UPDATE

Advertisements
Advertisements

Question

Differentiate between the following statement:

ALTER and UPDATE

Distinguish Between
Advertisements

Solution

Alter

  • ALTER command is Data Definition Language (DDL).
  • ALTER command will perform the action on the structure level and not on the data level.
  • ALTER Command is used to add, delete, and modify the attributes of the relations (tables) in the database.

Update

  • UPDATE Command is a Data Manipulation Language (DML).
  • UPDATE command will perform on the data level.
  • UPDATE Command is used to update existing records in a database.
shaalaa.com
SQL for Data Definition
  Is there an error in this question or solution?
Chapter 9: Structured Query Language (SQL) - Exercise [Page 177]

APPEARS IN

NCERT Computer Science [English] Class 12
Chapter 9 Structured Query Language (SQL)
Exercise | Q 1. e) i) | Page 177
NCERT Informatics Practices [English] Class 11
Chapter 8 Introduction to Structured Query Language (SQL)
Exercise | Q 7. a) | Page 172
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×