Bonjour tous le monde, je cherche depuis plusieurs jours comment verrouillé une table dans HSQL . c'est pas la même syntaxe que SQL . j'ai utilisé la syntaxe :
In some circumstances, where multiple simultaneous transactions are in progress, it may be necessary to ensure a transaction consisting of several statements is completed, without being terminated due to possible deadlock. When this statement is executed, it waits until it can obtain all the listed locks, then returns. The SQL statements following this statements use the locks already obtained (and obtain new locks if necessary) and can proceed without waiting. All the locks are released when a COMMIT or ROLLBACK statement is issued. Currently, this command does not have any effect when the database transaction control model is MVCC. Example 3.3. Locking Tables
Marsh Posté le 08-05-2010 à 11:36:43
Bonjour tous le monde,
je cherche depuis plusieurs jours comment verrouillé une table dans HSQL .
c'est pas la même syntaxe que SQL .
j'ai utilisé la syntaxe :
mais sa ne marche pas.
voici mon code :
voila ce qui est écrie dans la FAQ HSQL
LOCK TABLE
lock table statement
<lock table statement> ::= LOCK TABLE <table name> { READ | WRITE} [, <table name> { READ | WRITE} ...]}
In some circumstances, where multiple simultaneous transactions are in progress, it may be necessary to ensure a transaction consisting of several statements is completed, without being terminated due to possible deadlock. When this statement is executed, it waits until it can obtain all the listed locks, then returns. The SQL statements following this statements use the locks already obtained (and obtain new locks if necessary) and can proceed without waiting. All the locks are released when a COMMIT or ROLLBACK statement is issued. Currently, this command does not have any effect when the database transaction control model is MVCC.
Example 3.3. Locking Tables
LOCK TABLE table_a WRITE, table_b READ
merci pour votre aide c'est très urgent.
Message édité par man_u le 08-05-2010 à 12:30:26