From: Philipp Ottlinger <ottlinger@computer-systeme.de>
To: ryanne cruz <ryanne.cruz@up.edu.ph>
Cc: pgsql-php@postgresql.org
Subject: Re: not null
Date: Sat, 25 Jan 2003 12:51:48 +0100
Message-ID: <3E327A54.8030800@computer-systeme.de> (raw)
In-Reply-To: <1043495560.3e327a8815907@mail.up.edu.ph>
References: <1043495560.3e327a8815907@mail.up.edu.ph>
ryanne cruz wrote:
>
> hi list.
>
> i have a column that has a "not null" as its modifier. is there a way that i
> can remove that? or better yet to make it a "serial not null"?
>
It depends on your entitiy-relationship schema - usually it makes sense
to define things as "not null" and it shouldn't be considered to be
taken away just by chance !!!
Usually you can alter the TABLE to remove such constraints ...
SERIAL - if I'm not too mistaken - is automatically maintained by
postgres as an implicit sequence whose values are generated by calling
sequence.nextval autonomously everytime you "need" a value!
Yours,
Phil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: ottlinger@computer-systeme.de, ryanne.cruz@up.edu.ph
Subject: Re: not null
In-Reply-To: <3E327A54.8030800@computer-systeme.de>
References: <1043495560.3e327a8815907@mail.up.edu.ph> <3E327A54.8030800@computer-systeme.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox