Search Postgresql Archives

Non-check constraint def for a static list ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi:

 

How could I define a constraint on a colum who’s value I want to restrict to a static list of strings?  For example, a column colled “gender” which cannot be NULL and must be either ‘M’ or ‘F’.  I can do it with a “check” constraint, but I can’t defer those constraints (the reason I’m asking for a non-check soln)

 

Thanks


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux