Delays processing for the current connection for a specified amount of time or until a given time.
WAITFOR { DELAY time_value | TIME time_value } [ CHECK EVERY integer } [ AFTER MESSAGE BREAK ]
WAITFOR DELAY '00:00:03'
WAITFOR DELAY '00:00:00:500'
WAITFOR TIME '20:00'
The WAITFOR statement wakes up periodically (every 5 seconds by default) to check if it has been canceled or if messages have been received. If neither of these has happened, the statement continues to wait.
If the current server time is greater than the time specified, processing is suspended until that time on the following day.
call java.lang.Thread.sleep( <time_to_wait_in_millisecs> )
In many cases, scheduled events are a better choice than using WAITFOR TIME, because scheduled events execute on their own connection.