SQL Server 2008中SQL之WaitFor

SQL Server 2008 in SQL Application Series - Table of Contents Index

In the above versions of SQL Server 2005, in an enhanced WaitFor command, and their role can be quite a job. However, the use of more simple.

看MSDN:
http://msdn.microsoft.com/zh-cn/library/ms187331.aspx

The syntax is:

WAITFOR 
{
    DELAY 'time_to_pass' 
  | TIME 'time_to_execute' 
  | [ ( receive_statement ) | ( get_conversation_group_statement ) ] 
    [ , TIMEOUT timeout ]
}

The following example 10:20 PM ( 22:20execute the stored procedure) sp_update_job.

 
  
Copy the code
 
   

Reproduced in: https: //www.cnblogs.com/kevinGao/p/3589945.html

Guess you like

Origin blog.csdn.net/weixin_34203832/article/details/93051689