Syntax of the lock table command

The syntax of lock table is:

lock table table_name in {share | exclusive} mode
          [wait [no_of_seconds] | nowait]

The wait/nowait option allows you to specify how long the command waits to acquire a table lock if it is blocked (see “Using the wait/nowait options of the lock table command”).

The following considerations apply to the use of lock table: