X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id C7D21D1DF84; Thu, 11 Dec 2003 15:34:55 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 59640-07; Thu, 11 Dec 2003 11:34:28 -0400 (AST) Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by svr1.postgresql.org (Postfix) with ESMTP id B2AAAD1DF80; Thu, 11 Dec 2003 11:34:08 -0400 (AST) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-33.mail.demon.net with esmtp (Exim 3.35 #1) id 1AUSpQ-000IjD-0X; Thu, 11 Dec 2003 15:34:12 +0000 Received: by mainbox.archonet.com (Postfix, from userid 529) id CE3E9173B5; Thu, 11 Dec 2003 15:34:10 +0000 (GMT) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id EBCF8167EC; Thu, 11 Dec 2003 15:34:08 +0000 (GMT) From: Richard Huxton To: "Nagib Abi Fadel" , "generalpost" , "developPost" Subject: Re: Should we consider empty fields as NULL values when dealing with string columns ? Date: Thu, 11 Dec 2003 15:34:09 +0000 User-Agent: KMail/1.5 References: <001401c3bff4$49abd7f0$f664a8c0@nagib> In-Reply-To: <001401c3bff4$49abd7f0$f664a8c0@nagib> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1256" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312111534.09392.dev@archonet.com> X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.3 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/633 X-Sequence-Number: 54027 On Thursday 11 December 2003 14:36, Nagib Abi Fadel wrote: > HI, > let's say we have the following table : > > # CREATE TABLE tempo (col1 varchar(3) not null); > CREATE TABLE > > # insert INTO tempo VALUES (''); > INSERT 11420541 1 I don't have much to add to Doug's reply, but you may want to look at: http://techdocs.postgresql.org/guides/BriefGuideToNulls -- Richard Huxton Archonet Ltd