两个日期时间戳明智和年度之间的差异
两个日期之间的月差异(时间戳)
select 
    (
        (DATE_PART('year', AgeonDate) - DATE_PART('year', tmpdate)) * 12 
        +
        (DATE_PART('month', AgeonDate) - DATE_PART('month', tmpdate))
    ) 
from dbo."Table1"
两个日期之间的年度差异(时间戳)
select (DATE_PART('year', AgeonDate) - DATE_PART('year', tmpdate)) from dbo."Table1"