1
by brian
clean slate |
1 |
drop table if exists t1;
|
2 |
create table t1 (n int);
|
|
3 |
insert into t1 values (1),(2),(3);
|
|
4 |
select * from t1;
|
|
5 |
n
|
|
6 |
1
|
|
7 |
2
|
|
8 |
3
|
|
9 |
drop table t1;
|
|
10 |
SELECT GET_LOCK("dangling", 0);
|
|
11 |
GET_LOCK("dangling", 0)
|
|
12 |
1
|
|
13 |
SELECT GET_LOCK('dangling', 3600);;
|
|
14 |
SELECT GET_LOCK('dangling', 3600);;
|
|
15 |
SELECT RELEASE_LOCK('dangling');
|
|
16 |
RELEASE_LOCK('dangling')
|
|
17 |
1
|
|
18 |
GET_LOCK('dangling', 3600)
|
|
19 |
1
|