5 ms·
"from date must be before to date" In Postgres: CREATE TABLE foo ( from_date datetime, to_date datetime, CHECK (from_date < to_dat
by yummyfajitas 14y 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.