Re: Data Type to store Leading Zero(0)

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Data Type to store Leading Zero(0)
Дата
Msg-id 5e0bb278-b0a1-27b6-5739-c357a86334db@gmx.net
обсуждение исходный текст
Ответ на Data Type to store Leading Zero(0)  (<soumik.bhattacharjee@kpn.com>)
Список pgsql-admin
soumik.bhattacharjee@kpn.com schrieb am 20.01.2021 um 12:13:
> As per business needs we need to store Zero(0) in primary key column
> of table  with this kind of value à  07******** with applications
> written in Java microservices.
>
> We are not able to use *numeric data type *as it trims the Zero value
> in leading,**but it’s also aperformance impact if we define *varchar*
> in the data type.


While there is a performance impact between an integer and varchar, in my experience
it's rarely that big that it will become a problem.

Thomas



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

Предыдущее
От: Ian Lawrence Barwick
Дата:
Сообщение: Re: 3 Parameters in pg_settings in CamelCase
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Data Type to store Leading Zero(0)