Hacker News new | ask | show | jobs
by yummyfajitas 4914 days ago
"from date must be before to date"

In Postgres:

    CREATE TABLE foo (
        from_date datetime,
        to_date datetime,
        CHECK (from_date < to_date)
    );
(This fails in MySQL. MySQL parses check constraints without error, but ignores them.)

I don't understand the quote problem, so I won't attempt to model it.