How and when to use SLEEP() correctly in MySQL?

前端 未结 2 645
醉梦人生
醉梦人生 2021-02-01 11:34

In relation to my other question today I am wondering how to use MySQL\'s SLEEP(duration) correctly.

From what I gathered reading MySQL Dev forums and very vague descrip

2条回答
  •  不思量自难忘°
    2021-02-01 12:35

    SELECT ...
    SELECT SLEEP(5);
    SELECT ...
    

    But what are you using this for? Are you trying to circumvent/reinvent mutexes or transactions?

提交回复
热议问题