Re: "NOT NULL"

From: tövis <tovises(at)freemail(dot)hu>
To: "pgsql novice" <pgsql-novice(at)postgresql(dot)org>, "Jaime Casanova" <systemguards(at)gmail(dot)com>
Subject: Re: "NOT NULL"
Date: 2005-05-24 06:38:53
Message-ID: 002601c5602b$408b2c10$3401a8c0@mainxp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

OK
How to prevent insert/update rows with NULL = 0 values?
How to modify table or server change NULL = 0 values to fields DEFAULT
values, if is it given?
Regards
Tövis

----- Original Message -----
From: "Jaime Casanova" <systemguards(at)gmail(dot)com>
To: "tövis" <tovises(at)freemail(dot)hu>
Cc: "pgsql novice" <pgsql-novice(at)postgresql(dot)org>
Sent: Tuesday, May 24, 2005 7:28 AM
Subject: Re: [NOVICE] "NOT NULL"

On 5/23/05, tövis <tovises(at)freemail(dot)hu> wrote:
> Thanks Jaime!
> Using pgAdmin III selected all rows:
> SELECT aid,num,name30 FROM nod ORDER BY num;
>
> First rows from result in a CSV file:
>
> aid;num;name30
> "374";"0";"2181 "
> "371";"0";"2178 "
> ...
>
> Is this a NULL or not? May be the method is not precise enough?
>
>
The better way you can prove that is:
SELECT aid,num,name30 FROM nod
WHERE num IS NULL ORDER BY num;

like Andreas said NULL is not 0, NULL is "unknown".

BTW, do the reply in this thread, that will do searches in
archives.postgresql.org easier.

--
Atentamente,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Bendik Rognlien Johansen 2005-05-24 07:21:46 Re: Help with prepared statement
Previous Message Jaime Casanova 2005-05-24 05:28:06 Re: "NOT NULL"