From: Lee Harr <missive@frontiernet.net>
To: pgsql-sql@postgresql.org
Subject: Re: what is the difference between default 0 vs default '0'
Date: Wed, 26 Jun 2002 02:35:28 +0000 (UTC)
Message-ID: <afb99f$1lgf$2@news.hub.org> (raw)
References: <000c01c21cab$c2f35ef0$6901a8c0@bethvizx>
In article <000c01c21cab$c2f35ef0$6901a8c0@bethvizx>, "Beth Gatewood" wrote:
> all-
> Could somebody tell me why I would use default 0 vs default '0' in the
> following....
> CREATE TABLE foo (col1 INTEGER default 0) <-- or default '0'
>
0 is an integer
'0' is a string
default '0' might work (through type coercion)
but I think default 0 is more clear.
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: missive@frontiernet.net
Subject: Re: what is the difference between default 0 vs default '0'
In-Reply-To: <afb99f$1lgf$2@news.hub.org>
* 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