SQL Update Command

 

Use :  This command is used to make changes to records in tables.

 

Syntax:

update tablename
set columnname = newvalue [,columnxname = newvaluex...]
where columnname OPERATOR value [and|or columnnamex OPERATOR valuex];

The OPERATOR is one of the conditions listed on the Select Command page.

 

Operators  :

 

Example :

update  student
set marks = 80
where name = 'Puneet' and
rollno = 13;
copyright @2008 Punuptech.com