You will need to reuse your database connection, do not open a new
connection with each call or the lock will not be there.
LOCK TABLE table1 READ;
SELECT * FROM table1;
UNLOCK TABLES; 

-----Original Message-----
From: Mirco Santori
To: [EMAIL PROTECTED]
Sent: 6/3/04 2:17 PM
Subject: VB .NET & MYSQL - LOCK TABLES

Hello MySql List,
I have create connection with VB .NET & MySql, and now i must use the
LOCK TABLES statment.
I want to know how i can use this sintax .. 

i must open connection - begin the LOCK TABLES - begin the select
statment, and then UNLOCK TABLES .. 
I think so that is not correctly .. 
where i can see the example for this problem ?

Excusme for my english .. i don's speak and write very well!!

Mirco

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to