Re: text vs varchar

Поиск
Список
Период
Сортировка
От Wei Weng
Тема Re: text vs varchar
Дата
Msg-id 1024444191.16918.6.camel@Monet
обсуждение исходный текст
Ответ на Re: text vs varchar  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-sql
On Tue, 2002-06-18 at 18:59, Josh Berkus wrote:
> Wei,
> 
> > Is there any disadvantage of using TEXT datatype as opposed to a VARCHAR
> > datatype with a maximum length, especially when I do searches on them?
> 
> Yes.  You can't index TEXT because it's of potentially unlimited length.
> 
> -- 
> -Josh Berkus
> 
> 
I noticed that it is a characteristics of MS SQL Server, but I did
successfully create unique index based on a TEXT field in Postgresql
7.2, while that failed in MS SQL Server (7).

Or do they behave the same in this aspect?

Thanks

-- 
Wei Weng
Network Software Engineer
KenCast Inc.




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

Предыдущее
От: Michelle Murrain
Дата:
Сообщение: Re: text vs varchar
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: date_part