首页 > 数据库技术 > 详细

【Mysql】lock tables

时间:2014-03-29 06:36:51      阅读:545      评论:0      收藏:0      [点我收藏+]

The LOCK TABLES privilege enables the use of explicit LOCK TABLES statements to lock tables for which you have the SELECT privilege. This includes the use of write locks, which prevents other sessions from reading the locked table

bubuko.com,布布扣
create database Susake;

use Susake;

create table Test(a int, b int);

lock tables Test read;

unlock tables;

insert into Test values(1, 2);

drop table Test;

drop database Susake;
bubuko.com,布布扣

【Mysql】lock tables,布布扣,bubuko.com

【Mysql】lock tables

原文:http://www.cnblogs.com/Cxx-Code/p/3632047.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!