lock_statement

Grammar1: AdabasD V13n

<lock_statement> ::= 
  LOCK [(WAIT)|(NOWAIT)] { 
    <lock_spec> IN {SHARE | EXCLUSIVE} MODE 
  | <row_spec>... OPTIMISTIC
  | <lock_spec> IN SHARE MODE <lock_spec> IN EXCLUSIVE MODE
  } 

Referenced by:
<commit_statement>, <rollback_statement>, <sql_statement>

Grammar2: MaxDB V7_6n

<lock_statement> ::= 
  LOCK [(WAIT)|(NOWAIT)] { 
    <lock_spec> IN {SHARE | EXCLUSIVE} MODE 
  | <row_spec>... OPTIMISTIC
  | <lock_spec> IN SHARE MODE <lock_spec> IN EXCLUSIVE MODE
  } 

Referenced by:
<routine_sql_statement>, <sql_statement>