D
D
des1roer2015-09-18 07:33:35
PostgreSQL
des1roer, 2015-09-18 07:33:35

Postgres default value with condition?

Is it possible to enter a condition in default something like
if a>500 then 1 else 0

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-09-18
@des1roer

It is hardly possible, use triggers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question