Re: [HACKERS] varchar/char size

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] varchar/char size
Дата
Msg-id 199801072304.SAA07589@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] varchar/char size  (The Hermit Hacker <scrappy@hub.org>)
Список pgsql-hackers
>
> On Wed, 7 Jan 1998, Bruce Momjian wrote:
>
> > In my experience, char() is full size as defined by create, and
> > varchar() is the the size of the actual data in the field, like text,
> > but with a pre-defined limit.
>
>     Can you remind me what the difference is between text and varchar?  Why
> would you use varchar over text?

Only because SQL people are used to varchar, and not text, and sometimes
people want to have a maximum size if they are displaying this data in a
form that is only of limited size.

--
Bruce Momjian
maillist@candle.pha.pa.us

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: varchar
Следующее
От: Bruce Momjian
Дата:
Сообщение: rollback varchar change