码迷,mamicode.com
首页 > 其他好文 > 详细

IS_FREE_LOCK(str)

时间:2017-05-24 14:33:55      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:div   sel   str   null   span   sql   color   mysq   返回值   

IS_FREE_LOCK(str) 检查名为 str 的锁是否可以使用

(1) 若锁可以使用,则返回 1
(2) 若锁正在被使用,则返回 0
(3) 若出现错误,则返回 NULL

mysql> SELECT IS_FREE_LOCK(lock1);
+-----------------------+
| IS_FREE_LOCK(lock1) |
+-----------------------+
|                     1 |    # 返回值为1说明锁可以使用
+-----------------------+

 

 

 

    

IS_FREE_LOCK(str)

标签:div   sel   str   null   span   sql   color   mysq   返回值   

原文地址:http://www.cnblogs.com/pzk7788/p/6898525.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!