Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
dev:sql:statements:update:home [2009/12/04 06:26]
tdo
dev:sql:statements:update:home [2010/07/02 18:14]
tdo
Line 8: Line 8:
  
 Update existing data in a database. Update existing data in a database.
- 
 ===== Syntax ===== ===== Syntax =====
  
-  UPDATE ​tablespec ​SET column-assignments ​+  UPDATE ​table_spec ​SET column-assignments ​
       [WHERE < predicate-list | CURRENT >        [WHERE < predicate-list | CURRENT > 
       [ < ON / OF > [ CURSOR ] cursor ] ]        [ < ON / OF > [ CURSOR ] cursor ] ] 
       [WITH options]       [WITH options]
    
 +
 ===== Discussion ===== ===== Discussion =====
  
Line 41: Line 41:
 ===== Examples ===== ===== Examples =====
  
-==== Simple ==== 
   UPDATE INVENTORY SET PRICE=10.95 WHERE PRICE=9.95   UPDATE INVENTORY SET PRICE=10.95 WHERE PRICE=9.95
- 
-This example creates an OST that contains customers who have canceled their order. Then customers whose orders are on back order, are added to the OST. 
  
 {{page>:​bottom_add&​nofooter&​noeditbtn}} {{page>:​bottom_add&​nofooter&​noeditbtn}}
 
Back to top
dev/sql/statements/update/home.txt ยท Last modified: 2016/06/28 22:38 (external edit)