If You Found Database Version Through SUBSTRING. Version will be anything like 5, or 8, etc.. Then use this accordingly to the version.
AND (SELECT IF(MID(VERSION(),1,1) = '8', SLEEP(15), 0))-- It will delay.
Fantastic writeup about SQL
@bug4you
thank you so much sir 💵🙏🙏