Re: Table locking
| From: | Rosen | Date: | Fri, 09 Jul 2004 00:04:09 +0000 |
| Subject: | Re: Table locking | ||
| References: | 1 2 3 4 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-35165@lists.php.net to get a copy of this message | ||
And if I perform "LOCK tables ..." nobody can;t write on these tables,
until I don't perform "UNLOCK TABLES" ?
If something happens ( I mean if some my queryes fails) ?
"Jason Wong" <php-db@gremlins.biz> wrote in message
news:200407090800.44633.php-db@gremlins.biz...
> On Friday 09 July 2004 07:24, Rosen wrote:
> > Thanks, but can you give me a sample PHP script with MySQL database,
whitch
> > do this?
>
> Don't have any examples handy. Basically instead of performing your usual
> single query, you sandwich it between two extra queries:
>
> LOCK tables ...
> your usual query here
> UNLOCK TABLES
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-db
> ------------------------------------------
> /*
> Nothing is impossible for the man who doesn't have to do it himself.
> -- A.H. Weiler
> */