Files
linguist/samples/SQLPL/sleep.sql
2015-02-09 14:16:25 +00:00

10 lines
213 B
MySQL

create procedure sleep (in sleeptime integer)
begin
declare wait_until timestamp;
set wait_until = (current timestamp + sleeptime seconds);
while (wait_until > current timestamp)
do
end while;
end!