An SQL UPDATE statement is used to change existing rows in a table.
An SQL UPDATE
statement is used to change existing rows in a table.
The basic syntax is:
UPDATE table
SET
Column1 = 'x',
Column2 = 'y'
WHERE id=1
Tagging Recommendation
This tag should be used for general SQL programming language questions, in addition to tags for specific products. For example, questions about Microsoft SQL Server should use the sql-server tag, while questions regarding MySQL should use the mysql tag. Tagging by product (including version, e.g oracle11g, sql-server-2008) is the easiest way to know what functionality is available for the task at hand.
References