Search Postgresql Archives

Re: Adding UNIQUE constraint on NULL column

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Or look at:

http://archives.postgresql.org/pgsql-sql/2003-08/msg00286.php

(and possibly its follow-up)

On Jan 13, 2005, at 3:16 PM, Scott Marlowe wrote:

On Thu, 2005-01-13 at 11:02, Doug McNaught wrote:
Dave Smith <dave.smith@xxxxxxxxxxx> writes:

On Thu, 2005-01-13 at 10:12, Doug McNaught wrote:

Are you really saying that you want 'NULL = NULL' to return 't'?

Yes

Well, that's not how NULL works.

In this instance, just create an artificial NULL, like a text string of "NONE" and insert that.



---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?


               http://www.postgresql.org/docs/faqs/FAQ.html


- -----------------------------------------------------------
Frank D. Engel, Jr.  <fde101@xxxxxxxxxxx>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.
$
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)


iD8DBQFB5uqc7aqtWrR9cZoRAmrYAJ9xn7/4BJSDIkV2HKa0LuTaH3dkawCfXwe+
LOlaK7dCVRjsx+InLCaxkwA=
=paot
-----END PGP SIGNATURE-----



___________________________________________________________
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com


---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster

[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