Subject | Re: [firebird-support] Locking a Table |
---|---|
Author | Martijn Tonies |
Post date | 2005-12-12T19:56:30Z |
> How do I lock and unlock a table so that there can be no concurrentYou cannot.
> updates/inserts to that table ? I am using the C API.
You can lock the records by doing a dummy update, eg:
update mytable set pkfield = pkfield
Next, other transactions will receive a deadlock error.
Any reason why you want to "lock a table"?
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com