News for hackers. Stuff that matters.
Re:Against SQL by goto11 on Tuesday July 13, 2021 @01:38PM (#27823767)
Check constraints are just SQL expressions, so in pesudocode it would be something like:

    (SELECT COUNT(*) shape JOIN square JOIN circle) = 1
How conveniently this can be expressed depend on the database system in question.

But if we are talking about adding features to SQL, it could have built-in support for such a constraint, just as there is built-in support for say foreign key constraints.

There are no comments on this comment yet.