Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgresql subtract date/hours

SELECT date '2022-10-12' - interval '7 days';
SELECT date '2022-10-12' - interval '24 hours';
Source by database.guide #
 
PREVIOUS NEXT
Tagged: #postgresql #subtract
ADD COMMENT
Topic
Name
4+8 =