sql >> Base de Datos >  >> RDS >> PostgreSQL

Spring Boot data-jpa y nativeQuery Postgres cast

Lo descubrí poco después de publicarlo. Escapando del :: ayuda.

SELECT * FROM topicaudit_c14001 
WHERE auditdate >= NOW() 
AND auditdate <= NOW() + '1 hour'\\:\\:INTERVAL 
AND accepted_status = 'ACCEPTED' 
AND reminder_sent = FALSE