lock_statement

<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>