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.
getdate()SQL SERVERの結果に 2 時間を追加したい。私は1日を追加できることを知っています:
getdate()
select getdate() + 1
しかし、時間を追加したい場合、これはどのように行われgetdate()ますか?
select dateadd(hour,2,getdate())
Select GETDATE() + (Convert(float,2)/Convert(float,24))
または他の方法で
Select DateAdd(HH,2,Getdate())