SQL 中是否可以有多个列级命名约束?语法是什么?

Is it possible to have multiple column-level named constraints in SQL? What is the syntax?

我可以创建多个列级约束:

CREATE TABLE foo
(   
    bar int CHECK (bar >= 0) UNIQUE NOT NULL
);

是否可以像这样分别命名?

CREATE TABLE foo
(   
    bar int CONSTRAINT a CHECK (bar >= 0) CONSTRAINT b NOT NULL CONSTRAINT c UNIQUE
);

给出了 PostgreSQL CREATE TABLE 语法 here,尽管我无法解析它。

是的,你提供的语法工作得很好(至少在我安装的 9.3.9 中是这样)。