English

Differentiate between update and alter table command.

Advertisements
Advertisements

Question

Differentiate between update and alter table command.

Distinguish Between
Advertisements

Solution

Basis of Difference UPDATE ALTER TABLE
Purpose Modifies data values Modifies table structure
Affects Rows and column values Columns and constraints
Example UPDATE student SET marks=90; ALTER TABLE student ADD city VARCHAR(20);
Type DML command DDL command
WHERE clause May be used Not used for selecting rows
shaalaa.com
  Is there an error in this question or solution?
Chapter 10: Structure Query Language - EXERCISE [Page 197]

APPEARS IN

CBSE Computer Science with Python [English] Class 12
Chapter 10 Structure Query Language
EXERCISE | Q 17. | Page 197
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×