biology daily - the biology and biochemistry encyclopedia
biology daily articles and research Encyclopedia Dictionary Forums biology research links Weblinks Pictures Articles Blogs Newsletter

Update (SQL)

An UPDATE statement in SQL changes data in one or more records in a relational database management system.

UPDATE statement has the following form:

UPDATE table_name SET column_name = value [, column_name = value ...] [WHERE criteriavariable = value]

For the UPDATE to be successful, the user must have data manipulation privileges (UPDATE privilege) over the table or column, the updated value must not conflict with all the applicable constraints (such as primary keys, unique indexes, CHECK constraints, and NOT NULL constraints).

Examples

UPDATE T SET C1 = 1 WHERE C2 = 'a'



07-14-2008 23:18:10
The contents of this article are licensed from Wikipedia.org under the GNU Free Documentation License. How to see transparent copy
BiologyDaily.com 2005. Legal info   Privacy