Answers for "declare date variable sql"

SQL
0

declare date variable sql

//The code below will get you a date and time 72 ago.
DECLARE @HoursAgo DATETIME = DATEADD(HOUR, -72, GETDATE());
SELECT @HoursAgo AS DaysOrHoursAgo;
Posted by: Guest on June-07-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language