Data Type to store Leading Zero(0) - Mailing list pgsql-admin

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 by date:

Previous
From: "William Sescu (Suva)"
Date:
Subject: 3 Parameters in pg_settings in CamelCase
Next
From: Nidhi Gupta
Date:
Subject: Re: Data Type to store Leading Zero(0)