HOW TO UPDATE EXISTING RECORDS IN TABLE IN SQL?

279 viewsSQLSQL
0
UPDATE in SQL
UPDATE in SQL
UPDATE

UPDATE statement is used to update the existing records in a table in SQL.

Syntax-

UPDATE <table_name>

SET column1 = value1, column2 = value2, โ€ฆ

WHERE <condition>;

Example-

UPDATE mstudentsnew

SET st_name = โ€˜Ajaiโ€™

WHERE st_id = 1;

Note-ย IF WHERE Clause is not used it will update all the records.

Saraswat World Changed status to publish June 14, 2023
Write your answer.

Posted

in

Tags:

Comments

Leave a Reply

A Tribute to Dilip Kumar