Re: what is the difference between default 0 vs default '0' - Mailing list pgsql-sql

From Lee Harr
Subject Re: what is the difference between default 0 vs default '0'
Date
Msg-id afb99f$1lgf$2@news.hub.org
Whole thread Raw
In response to what is the difference between default 0 vs default '0'  ("Beth Gatewood" <beth@vizxlabs.com>)
List pgsql-sql
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.





pgsql-sql by date:

Previous
From: "Eric"
Date:
Subject: Performance Ideas
Next
From: Tom Lane
Date:
Subject: Re: Performance Ideas