Using the lock table command to improve performance  Using transactions in stored procedures and triggers

Chapter 20: Transactions: Maintaining Data Consistency and Recovery

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 “wait/nowait option of the lock table command”).

The following considerations apply to the use of lock table:You can issue





Copyright © 2005. Sybase Inc. All rights reserved. Using transactions in stored procedures and triggers

View this book as PDF