复制代码代码如下所示:
选择ABS(DateDiff(DD,结束日期,begindate))从dbo.workingplan

其中,workingplan是表,

结束日期和begindate是结束和开始在workingplan表时间

如果有不正确的地方,我们欢迎批评和进步。