如何更改 table 并在日期列中添加不允许 sql 中特定日期之前的日期?

How to alter a table and add in a date column which doesn't allow dates before a certain date in sql?

我需要一个 sql 查询来更改 table 以添加日期列,这是我知道该怎么做的部分。我不知道该怎么做的是指定列中的日期需要在某个日期之后。

我最近的尝试:

ALTER TABLE <table name>
ADD constraint <constraint name>
CHECK (<column name>(date, 'YYYY-MM-DD') >= '2000-01-01');

我正在使用 pgadmin4。

这个怎么样?

ALTER TABLE t ADD constraint chk_t_col CHECK (col >= '2000-01-01');