Open ramirobg94 opened 2 years ago
something like
INSERT INTO offers (user_id, created_at, public_at)
SELECT user_id, now(), now() + INTERVAL '1 second' * delay
FROM UNNEST ($1::uuid[], $2::int[]) AS t (user_id, delay)
RETURNING id, user_id
We are trying to build this query
but the system returns
invalid input syntax for type timestamp: "NOW() + interval '10 seconds'"
Does anyone knows the right way to build this query