For oracle we can use the following syntax for sleep
DBMS_LOCK.SLEEP(sleepTime);
For mysql we can use the following syntax for sleep
DO SLEEP(sleepTime);
For db2 how could I achieve this?. Following is part of my script.
REPEAT
IF rowCount > 0
THEN
DO SLEEP(sleepTime);
END IF;
DELETE FROM IDN_OAUTH2_ACCESS_TOKEN WHERE TOKEN_STATE IN ('EXPIRED','INACTIVE','REVOKED') OR (TOKEN_STATE='ACTIVE');
GET DIAGNOSTICS rowCount = ROW_COUNT;
UNTIL rowCount=0 END REPEAT;
How can we do sleep with db2?.Any help on this would be appreciated