This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||
|
4D v20 R8
LOCK TABLE
|
|
||
The LOCK TABLE command is used to lock the table named sql_name in either EXCLUSIVE or SHARE mode.
In EXCLUSIVE mode, the data of the table cannot be read or modified by another transaction.
In SHARE mode, the data of the table can be read by concurrent transactions but modifications are still prohibited.
This example locks the MOVIES table so that it can be read but not modified by other transactions:
LOCK TABLE MOVIES IN SHARE MODE
Product: 4D
Theme: SQL Commands
4D SQL Reference ( 4D v20 R8)