我们还可以设置锁的超时时间(单位是毫秒), 来缩短死锁可能影响的时间范围:
例如:
Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ use master seelct @@lock_timeout set lock_timeout 900000 -- 15分钟 seelct @@lock_timeout