Search Postgresql Archives

How to setup a column constraint for an integer type? Default 0 if not defined

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

 



Hi,


I'm trying to port some source code to Postgres 8.3.8 and have been encountering some surprises :-(
I would like to set up a column constraint for an integer type, so that when the value is undefined, it would assign a default value of 0 to that column.
How would I do that in 8.3.8?  Please provide an example.

Mary






-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[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