Re: Finding Max Value in a Row

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Finding Max Value in a Row
Дата
Msg-id jojrc9$uof$2@dough.gmane.org
обсуждение исходный текст
Ответ на Re: Finding Max Value in a Row  (Carlos Mennens <carlos.mennens@gmail.com>)
Список pgsql-sql
Carlos Mennens wrote on 11.05.2012 21:53: 
> Very good question and asked by myself to the original SQL author and
> he explained while he didn't use the most efficient data types, he
> used ones "he" felt would be more transparent across a multitude of
> RDBMS vendors. So the answer is no, it would not be an issue
> considering I use and will always use PostgreSQL. If someone else uses
> a different vendor, they can manage that import/export process then.

You should tell those people that char is a bad choice in _any_ DBMS due to the padding that is involved.

varchar would have been slightly better.

But it's never, ever a good idea to store numbers in a character column.
*Every* RDBMS has some kind of integer datatype (they might just have different names).

 




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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: Finding Max Value in a Row
Следующее
От: Viktor Bojović
Дата:
Сообщение: Re: Finding Max Value in a Row