Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    select * from MyTab T where TIMESTAMPDIFF(MINUTE,T.runTime,NOW()) > 20 (T.runTime is the coulmn of MyTab table) Commented Apr 22, 2017 at 18:57
  • it doesn't include the second only show the difference of minute Commented Jan 18, 2019 at 17:58
  • My suplyed MySql doesn't have that, is version 5.5 I had to use TIMEDIFF instead. Commented Jul 26, 2022 at 9:42