Answer the question
In order to leave comments, you need to log in
How to pull out all records from the database for the last 30 seconds, taking into account the user ID?
Hello everyone!)
Guys, I know that the question is very simple and damn it, very stupid, but I even earned so much that I got lost in 3 pine trees)
The task is simple, you need to select all records from the database, taking into account the user ID for the last 30 seconds and calculate their number, I write this request
SELECT COUNT(*) FROM count_check WHERE id=555334444444 AND created_at >= (now() - interval 30 second)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question