What SQL databases support subqueries in CHECK constraints?

前端 未结 6 1907
走了就别回头了
走了就别回头了 2020-12-06 12:47

What SQL databases, if any, support subqueries in CHECK constraints?

At present and as far as I know, Oracle, MySQL, and PostgreSQL do not.

EDIT

6条回答
  •  忘掉有多难
    2020-12-06 13:08

    Pretty sure TRIGGER will work in each of the databases you mentioned and you get a lot more "elbow room" to work out your constraint.

提交回复
热议问题