Search
 
SCRIPT & CODE EXAMPLE
 

SQL

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;
Comment

PREVIOUS NEXT
Code Example
Sql :: when matched in sql server 
Sql :: sqlite update query python 
Sql :: mysql filter by date mount 
Sql :: sql server datetime vs datetime2 
Sql :: postgres select except 
Sql :: mysql update 
Sql :: sql max min 
Sql :: sql if else 
Sql :: mysql query to select the highest value 
Sql :: get only one row in mysql 
Sql :: create-table 
Sql :: how to get information about data types in postgreSQL 
Sql :: plpgsql coalesce equivalent for empty string 
Sql :: sql float 3 decimal places 
Sql :: how to check last index rebuild sql server 
Sql :: fetlife 
Sql :: compare field sql server 
Sql :: how to average max mysql 
Sql :: memberikan password root mysql 
Sql :: how to show current database in mysql 
Sql :: mysql average from two table 
Sql :: sql insert into select statement 
Sql :: insert or update cassandra 
Sql :: mysql shell 
Sql :: grapgql 
Sql :: cross join sl 
Sql :: long string type sql 
Sql :: clone row from another table mysql 
Sql :: postgres disable foreign keys 
Sql :: what are the data types 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =