Re: Difference between char and varchar

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Difference between char and varchar
Дата
Msg-id 20060829001019.GA10848@wolff.to
обсуждение исходный текст
Ответ на Difference between char and varchar  (Richmond Dyes <rdyes@monroehosp.org>)
Ответы Re: Difference between char and varchar  (Franck Routier <franck.routier@axege.com>)
Список pgsql-novice
On Mon, Aug 28, 2006 at 15:04:26 -0400,
  Richmond Dyes <rdyes@monroehosp.org> wrote:
> I know the difference between char and varchar is char is fixed length
> and varchar returns variable length.  Which one should be used and why?

You normally want to use 'text' instead of either 'char' or 'varchar'.
Unless there is a business rule limiting the length of a string (and sometimes
not even then) you want to use 'text' as it is more flexible.

В списке pgsql-novice по дате отправления:

Предыдущее
От: Richmond Dyes
Дата:
Сообщение: Difference between char and varchar
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: [GENERAL] Shared Objects (Dynamic loading)