PostgreSQL
 sql >> Base de Dados >  >> RDS >> PostgreSQL

Spring Boot data-jpa e nativeQuery Postgres cast


Descobri logo depois de postar. Escapando o :: ajuda.
SELECT * FROM topicaudit_c14001 
WHERE auditdate >= NOW() 
AND auditdate <= NOW() + '1 hour'\\:\\:INTERVAL 
AND accepted_status = 'ACCEPTED' 
AND reminder_sent = FALSE