Search the Whole World Here.,.,

SQL - UPDATE Multiple Columns


To update more than one column, use a comma as seperator.

Assume we wish to update the customer "Alfreds Futterkiste" with a new contact person and city.

We use the following SQL statement:

Example

UPDATE Customers
SET ContactName='Alfred Schmidt', City='Frankfurt'
WHERE CustomerID=1;
Try it Yourself »


EmoticonEmoticon