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.
Leave a Reply