|
SQL Home
SQL TutorialIntroductionSQL Syntax SQL Select SQL Where SQL Order By SQL Top SQL Distinct SQL In SQL Alias SQL Join SQL Inner Join SQL Outer Join SQL Insert SQL Update SQL Delete SQL Functions SQL Count SQL Create SQL Create Database SQL Create Table SQL Create Index SQL Alter Table SQL Summary
Sponsored Links
$1.99 Domain Names
With every new non-domain purchase thru ZappyHost, you get a domain name for only $1.99. |
SQL UpdateThe SQL UPDATE statement allows you to update an existing record in the database. The UPDATE command uses a WHERE clause. If you don't use a WHERE clause, all rows will be updated. In fact, the syntax for a basic UPDATE statement is very similar to a SELECT statement. SQL statement
Source Table
ResultNow if we select this record, we can see the updated value.
Updating Multiple FieldsTo update multiple fields, separate each field assignment with a comma. SQL statement
Result
Next lesson covers the DELETE statement. |
Sponsored Links
Need Website Content?
Get unique, quality digital content for your website.
|