skip to Main Content

Postgresql – I have ERROR like this in postgres: syntax error at or near ":"

When i try to execute native query in my Spring JPA i give an error in my code ? import javax.management.Query; import javax.persistence.EntityManager; import javax.sql.DataSource; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Repository; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import java.util.ArrayList; import java.util.List; import java.sql.SQLException; import…

VIEW QUESTION

Postgresql – How to aggregate for first values in group

I have troubles creating certain aggregations. I'm using this table in Postgres: CREATE TABLE public.customer_courier_chat_messages ( sender_app_type character varying(255), customer_id integer, from_id integer, to_id integer, chat_started_by_message boolean, order_id integer, order_stage character varying(255), courier_id integer, message_sent_time timestamp with time zone );…

VIEW QUESTION
Back To Top
Search