Try the following:
select * from MyTab T where date_add(T.runTime, INTERVAL 20 MINUTE) < NOW()
NOTE. This should work if you are using the MySQL DateTime format. If you use a Unix timestamp (integer), then this will be even simpler:
select * from MyTab T where UNIX_TIMESTAMP() - T.runTime > 20*60
The UNIX_TIMESTAMP () function returns the current unix timestamp.
itsmeee 03 Oct 2018-11-11T00: 00Z
source share