Re: [GENERAL] Error in column constraint syntax - Mailing list pgsql-general

From Rich Shepard
Subject Re: [GENERAL] Error in column constraint syntax
Date
Msg-id alpine.LNX.2.11.1612270918270.8904@localhost
Whole thread Raw
In response to Re: [GENERAL] Error in column constraint syntax  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-general
On Tue, 27 Dec 2016, David G. Johnston wrote:

> ​5.3.1 is instructional.  The SQL Command chapter is the
> authoritative source for syntax.

David,

   I'll read that, too.

> CHECK ( expression ) [ NO INHERIT ] |   -- you are missing the mandatory (
> ) surrounding your expression
> All of the examples in 5.3.1 have a "(" following the word CHECK as well...

   Yes, I see now that I misplaced the opening parenthesis and missed the
second closing parenthesis at the end of the IN list.

   I thought I had tested this syntax; obviously I did not.

Thanks,

Rich



pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: [GENERAL] Error in column constraint syntax
Next
From: Арсен Арутюнян
Date:
Subject: [GENERAL] Indexes and loops