pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Hamid Khoshnevis <hamid@emarq.com>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] null and integer field
Date: Wed, 19 Jan 2000 21:20:09 -0500
Message-ID: <18901.948334809@sss.pgh.pa.us> (raw)
In-Reply-To: <000601bf62e1$4c1d1040$810a0a0a@emarq>
References: <000601bf62e1$4c1d1040$810a0a0a@emarq>

"Hamid Khoshnevis" <hamid@emarq.com> writes:
> The content of an integer field when unassigned appears to be different from
> pushing a null into that field.   Can someone please explain the difference
> and show me how to push an 'unassigned' into that integer field.

There is no such concept as 'unassigned' in SQL; whatever you are
observing, it's not that.  An integer field should indeed be NULL
if it hasn't got a default and you didn't provide a value when you
inserted the tuple.

Can you provide more details about the problem you're having?

			regards, tom lane



view thread (2+ messages)

Message-ID: <18901.948334809@sss.pgh.pa.us>
Permalink:  ../18901.948334809@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18901.948334809@sss.pgh.pa.us

 · 

reply

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-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, hamid@emarq.com
  Subject: Re: [SQL] null and integer field
  In-Reply-To: <18901.948334809@sss.pgh.pa.us>
  References: <000601bf62e1$4c1d1040$810a0a0a@emarq> <18901.948334809@sss.pgh.pa.us>

* 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