我需要在几分钟内找出两个日期之间的差异。下面是我一直使用的select语句:
select date ('05.04.2017 11:12:00') - date('now');它正在返回-4 mins -21 secs,但我只想看到4分钟。我在裁判指南中找不到答案,你知道如何以我需要的格式显示它吗?
发布于 2017-04-05 08:05:35
http://ariel.its.unimelb.edu.au/~yuan/Ingres/us_13229.html
你能试一下吗..。不熟悉ingres
select INTERVAL('mins','today'-date('05.04.2017 11:12:00'))http://www.r20.nl/TheSQLGuidetoIngres-AppendixB.pdf
https://stackoverflow.com/questions/43219383
复制相似问题