How to wait for 2 seconds?

后端 未结 4 2035
情深已故
情深已故 2020-12-22 19:21

How does one cause a delay in execution for a specified number of seconds?

This doesn\'t do it:

WAITFOR DELAY \'00:02\';

What is th

4条回答
  •  囚心锁ツ
    2020-12-22 20:02

    The documentation for WAITFOR() doesn't explicitly lay out the required string format.

    This will wait for 2 seconds:

    WAITFOR DELAY '00:00:02';
    

    The format is hh:mi:ss.mmm.

提交回复
热议问题