Skip to content
Home » SQL Server » SQL Server UPDATE Statement

SQL Server UPDATE Statement

Update Query Example
5/5 - (1 vote)

The SQL Server UPDATE Statement is used to modify existing data in table. It’s comes under Data Manipulation Language(DML).

Syntax:

UPDATE table_name SET column1 = value1,
column2 = value2,...columnN = valueN 
WHERE condition

Note: See how to CREATE TABLE & INSERT Data into Table

Example:

Select Data in SQL
Select Data in SQL

Now we will update firstName & lastName for IdentityNo ‘A100’.



Execute below query:

 UPDATE tblemp2 SET firstName='Roy', lastName='Mike' WHERE IdentityNo='A100'

Query Output:

Query Result

Hope you enjoy the post. Your valuable feedback, question, or comments about this post are always welcome or you can leave us message on our contact form , we will revert to you asap.

Recommended SQL Server Post:

SQL CREATE TABLE 

SQL INSERT INTO

SQL Server Commands

Loading

Leave a Reply

Discover more from Power BI Docs

Subscribe now to keep reading and get access to the full archive.

Continue reading