数据库之常用操作 时间函数 1.时间间隔 select datediff(year, 开始日期,结束日期); --两日期间隔年 时间参数类型 季度:quarter;月份:month;天:day;星期:week;时:hour;分:minute;秒:second