Professional Documents
Culture Documents
UPDATE table_name
SET column1=value, column2=value2,...
WHERE some_column=some_value
Note: Notice the WHERE clause in the UPDATE syntax. The WHERE clause specifies which record or
records that should be updated. If you omit the WHERE clause, all records will be updated!
Now we want to update the person "Tjessem, Jakob" in the "Persons" table.
UPDATE Persons
SET Address='Nissestien 67', City='Sandnes'
WHERE LastName='Tjessem' AND FirstName='Jakob'
UPDATE Persons
SET Address='Nissestien 67', City='Sandnes'
Note: Notice the WHERE clause in the DELETE syntax. The WHERE clause specifies which record or
records that should be deleted. If you omit the WHERE clause, all records will be deleted!
SQL DELETE Example
The "Persons" table:
Now we want to delete the person "Tjessem, Jakob" in the "Persons" table.
or
Note: Be very careful when deleting records. You cannot undo this statement!
Whether you're new to XML or already an advanced user, the user-friendly views and powerful entry
helpers, wizards, and debuggers in XMLSpy are designed to meet your XML and Web development
needs from start to finish. New features in Version 2011!
XML editor
Graphical XML Schema / DTD editors
XSLT 1.0/2.0 editor, debugger, profiler
XQuery editor, debugger, profiler
XBRL validator, taxonomy editor, taxonomy wizard
New! Chart creation for XML data
Support for Office Open XML (OOXML)
Graphical WSDL 1.1/2.0 editor & SOAP debugger
JSON editing & conversion
Java, C#, C++ code generation
32-bit and 64-bit versions
And much more!
SQL Try It
« Previous Next Chapter »
To preserve space, the table above is a subset of the Customers table used in the example below.
Try it Yourself
To see how SQL works, you can copy the SQL statements below and paste them into the textarea, or
you can make your own SQL statements.
When using SQL on text data, "alfred" is greater than "a" (like in a dictionary).