Search Postgresql Archives

two not null columns

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

 



How would I write a table check constraint to make sure that two columns don't 
both have nulls at the same time.
The following doesn't do it because it because it does not allow one column to 
be null while the other holds data?

check(teachgroup is not null AND set is not null)

regards
garry


[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