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.
我的表中有 2 个日期列(start_date, end_date)。
(start_date, end_date)
我试过Datediff(day, start_date, end_date)了,但我提示:
Datediff(day, start_date, end_date)
无效的列名
如何计算这两列之间的日期差异?
从您的表名中选择 DATEDIFF (day,start_date,end_date);
应该是Datediff(day, start_date, end_date)。结尾没有“s”day
day
应该是“天”