Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以分钟为单位返回当前时间和字段中另一个时间的函数是什么?
select mytable.mytimecolumn, now() from mytable
如果你想以分钟为单位,
SELECT TIMESTAMPDIFF(MINUTE,now(),mytable.mytimecolumn) from mytable