I have a column that I want to accept values from 1 to 100, is it possible ? I know this is accomplished with functions, but I'm looking for a simple solution as mentioned above.
How do I create an custom range type in PostgreSQL for example from 1 to 100?
1k Views Asked by kobayashi At
2
You can use a check constraint:
Alternatively if you need that in multiple tables, a domain might be useful