MySQL Pull Data By Second

Hello, if we want to pull data per second from mysql database, we can use methods like the following. Assuming that the column name of the section where we keep the dates is the date, a sql code like this will work.

select * from tableName
where TIMESTAMPDIFF(SECOND, date, now()) > 30;


select * from tableName
where date > (now() - INTERVAL 30 SECOND);

There are no comments, make the firs comment