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.
15/11/2001データベースに日付が保存されている場合、日付の年1を15/11/2002..にするために作成したいですか?
15/11/2001
1
15/11/2002
を使用しDATEADDます。たとえば、クエリでは次のようになります。
DATEADD
SELECT DATEADD(year, 1, [myDate]) FROM [myTable]
DATEADDを使用します。
SELECT DATEADD(year, 1, '2001-11-15');