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.
我正在尝试将这些列的数据保存在我的表中:分别是年、月和日期。有没有办法将这些列设置为自动调整或更新为当前年份、月份和日期?
你可以DATENAME在sql中使用函数。例如select DATENAME(year,getdate())
DATENAME
select DATENAME(year,getdate())