Re: Table lock with Querytool / DB / MDB
| From: | Bob Bell | Date: | Tue, 29 Jul 2003 19:37:03 +0000 |
| Subject: | Re: Table lock with Querytool / DB / MDB | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-6900@lists.php.net to get a copy of this message | ||
On Tue, Jul 29, 2003 at 09:09:40PM +0200, Thomas Watz <twnews@gmx.de> wrote:
I am using the Querytool and DB. It works fine so far. Does anybody know how to lock tables when inserting/updating data? It doesnt seem that this is made automatically, but I didnt find a function for that. Do we have to make it manually?For DB at least, you would use transactions. See the autoCommit(), rollback(), and commit() methods. -- Bob Bell <bbell@users.sourceforge.net>