How to update in sql Server?
The update statement is used to update existing records in a table.
Syntax:-
UPDATE Table_name SET Column1=value1,column2=value2 WHERE someColumn=somevalue.
Example:-
UPDATE Employee SET Frst_name='Ram',Addres='Kolkata' WHERE EmpID ='1'
Note:-
If we cannot include the WHERE clause then all records will update.
The update statement is used to update existing records in a table.
Syntax:-
UPDATE Table_name SET Column1=value1,column2=value2 WHERE someColumn=somevalue.
Example:-
UPDATE Employee SET Frst_name='Ram',Addres='Kolkata' WHERE EmpID ='1'
Note:-
If we cannot include the WHERE clause then all records will update.