pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <acroyear_07030@yahoo.com>
To: Chris Ruprecht <chrup999@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Unknown values in int8 fields?
Date: Sun, 15 Jul 2001 20:48:32 -0700
Message-ID: <005001c10daa$318c1530$6fde010a@myst.com> (raw)
References: <B777B626.23D2%chrup999@yahoo.com>

Have you tried "where recno IS NULL"?

----- Original Message -----
From: "Chris Ruprecht" <chrup999@yahoo.com>
To: <pgsql-sql@postgresql.org>
Sent: Sunday, July 15, 2001 7:05 PM
Subject: [SQL] Unknown values in int8 fields?


> Hi Chris,
>
> When I load records with copy <table> from ... And one of the fields (last
> one) is left empty, I want the default of nextval('sequence_table') to
kick
> in - but it doesn't.
> Now, the field with a unique index on it stays blank. No big deal if I
could
> go and say 'update rate set recno = nextval('sequence_rate') where recno =
0
> - but it's not that easy as the recno is not 0 but - hmm  what? What can I
> check for? I tried '?' and ? And 0 and ... And ... And ... But nothing
works
> ... Now what?



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




view thread (3+ messages)

Message-ID: <005001c10daa$318c1530$6fde010a@myst.com>
Permalink:  ../005001c10daa$318c1530$6fde010a@myst.com/
Also on:    postgresql.org/message-id/005001c10daa$318c1530$6fde010a@myst.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: acroyear_07030@yahoo.com, chrup999@yahoo.com
  Subject: Re: Unknown values in int8 fields?
  In-Reply-To: <005001c10daa$318c1530$6fde010a@myst.com>

* 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