Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

DATE_SUB postgres

-- MySQL
DATE_SUB(NOW(), INTERVAL '1 YEAR')
-- PostgreSQL
(NOW() - INTERVAL '1 YEAR')
 
PREVIOUS NEXT
Tagged: #postgres
ADD COMMENT
Topic
Name
4+4 =