Hi, How about storing the actual number in TEXT column and adding a separate INT primary key column where you either copy the number or use it as a generated column? Or, if you actually want to include the leading zeroes in the primary key, how about two-column primary key like this: So, the number "0005556879" would become a primary key (3, 5556879). Sincerely, Anssi Kanninen From: Nidhi Gupta <nidhig631@xxxxxxxxx>
Use datatype smallint(1) for storing zero or use Boolean datatype. On Wed, Jan 20, 2021, 4:43 PM <soumik.bhattacharjee@xxxxxxx> wrote:
|