update

Description

Changes data in existing rows, either by adding data or by modifying existing data.

Syntax

update [[database.]owner.]{table_name | view_name} 
 set [[[database.]owner.]{table_name.|view_name.}]
     column_name1 =
         {expression1|NULL|(select_statement)}
     [, column_name2 = 
         {expression2|NULL|(select_statement)}]...
 [from [[database.]owner.]{view_name|table_name
[(index index_name [ prefetch size ][lru|mru])]} 
 
      [,[[database.]owner.]{view_name|table_name
[(index index_name [ prefetch size ][lru|mru])]}]
 ...]
 [where search_conditions]
update [[database.]owner.]{table_name | view_name} 
 set [[[database.]owner.]{table_name.|view_name.}]
     column_name1 =
        {expression1|NULL|(select_statement)}
     [, column_name2 = 
        {expression2|NULL|(select_statement)}]...
 where current of cursor_name

Usage


Server Class ASEnterpriser


Server Class ASAnywhere


Server Class ASIQ


Server Class sql_server


Server Class direct_connect


Server Class db2

See also

update in the Adaptive Server Reference Manual.