1.

Give the syntax and example of UPDATE command in SQL.

Answer»

UPDATE command:

It can be used to change row values from a table. The SET key word takes the column in which values needs to be changed or updated. The WHERE keyword is used to filter the records on some condition.
Syntax:
UPDATE tablename SET columnname = values WHERE Condition;
Example:
UPDATE student SET combn = ‘PCMCs’ where combn=’pcmc’;



Discussion

No Comment Found

Related InterviewSolutions