No products in the cart.

Update and alter use

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Update and alter use
  • 1 answers

Surajbhan Choudhary 4 years, 11 months ago

These are two different SQL Statements.

UPDATE command is used to update the data lying in the tables. e.g. 
UPDATE students SET marks = marks + 10 WHERE subject = "Hindi";

the above statement will increase the marks column values by 10 where the subject value is Hindi.

where as ALTER command is used to change the Structure of a table. e.g. to add a new column in students table the SQL command will be - 
ALTER TABLE students ADD remarks varchar(10); 

the above command will add a new column with name remarks in students table.

http://mycbseguide.com/examin8/

Related Questions

Founder of python
  • 2 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App