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.
日付からの日数を計算したい。
たとえば、があり@date='03/16/2012'ます。今までの日数を知りたいです。
@date='03/16/2012'
どうすればいいですか?
datediff(day, @date, getdate())
datediff