【Mysql】lock tables

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

【Mysql】lock tables
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;
【Mysql】lock tables

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

【Mysql】lock tables

上一篇:Oracle DMP 操作笔记之根据DMP逆向推导出导出的表空间名称


下一篇:PS简单制作漂亮的光芒四射效果