Re: Data Type to store Leading Zero(0)

Поиск
Список
Период
Сортировка
От Nidhi Gupta
Тема Re: Data Type to store Leading Zero(0)
Дата
Msg-id CAAbUf+FEtZC6g6J_sM9XqkmRtJcTHwfTCQbDBmqF5WM__1aTbw@mail.gmail.com
обсуждение исходный текст
Ответ на Data Type to store Leading Zero(0)  (<soumik.bhattacharjee@kpn.com>)
Ответы RE: Data Type to store Leading Zero(0)
RE: Data Type to store Leading Zero(0)
Список pgsql-admin
Use datatype smallint(1) for storing zero or use Boolean datatype.

On Wed, Jan 20, 2021, 4:43 PM <soumik.bhattacharjee@kpn.com> wrote:

Hello Experts,

 

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 a performance impact if we define varchar in the data type.

 

Please suggest.

 

Thanks

 

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

Предыдущее
От:
Дата:
Сообщение: Data Type to store Leading Zero(0)
Следующее
От: Kanninen Anssi EXT
Дата:
Сообщение: RE: Data Type to store Leading Zero(0)