Re: what is the difference between default 0 vs default '0'

Поиск
Список
Период
Сортировка
От Lee Harr
Тема Re: what is the difference between default 0 vs default '0'
Дата
Msg-id afb99f$1lgf$2@news.hub.org
обсуждение исходный текст
Ответ на what is the difference between default 0 vs default '0'  ("Beth Gatewood" <beth@vizxlabs.com>)
Список 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 по дате отправления:

Предыдущее
От: "Eric"
Дата:
Сообщение: Performance Ideas
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Performance Ideas