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.
我有 dob 列如何通过在派生列中使用 DOB 列来计算年龄?我尝试如下使用,但这会引发错误。
datediff(yy, Dob,getdate())
尝试使用以下表达式:
DATEDIFF("yy" , [DOB], GETDATE())
参考: