T
T
Timur_gis_882020-12-31 19:33:12
PostgreSQL
Timur_gis_88, 2020-12-31 19:33:12

How to form a range from a set of digits in Postgres?

There is a set of numbers 1,2,3,4,11,13,17,20,21,22,23,24
you need to form 1-4,11,13,17,20-24
Is this possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2020-12-31
@ky0

DBMS are meant for something else. Read data from the database, do something with it in any way convenient for you - and write back the result.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question