D
D
des1roer2015-05-27 10:16:35
PostgreSQL
des1roer, 2015-05-27 10:16:35

Postgres range of numbers?

tell me how to correctly write the range to the database?
suppose


value value 2
10-20 12
20-30 16

It is clear that you will have to write as text. and then how to work with it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Mokhov, 2015-05-27
@des1roer

you can use Range Types , here are a bunch of functions for them

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question