Re: How do I add/edit 'digit' property into PGAdmin4 ?

From: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
To: Karen Goh <karenworld(at)yahoo(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: How do I add/edit 'digit' property into PGAdmin4 ?
Date: 2019-07-18 17:12:53
Message-ID: 018F5702-CA8B-4311-AD54-30B957C5B2EF@elevated-dev.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Jul 18, 2019, at 9:29 AM, Karen Goh <karenworld(at)yahoo(dot)com> wrote:
>
> I need help to change an existing column in my table from text to 'digit' type.
>
> However, I can't find any numeric or integer property type.
>
> The digit type should contains numbers only but it is not for calculation. It is a zipcode that has 6 digit numbers.

There is no digit type. I assume your 6-digit numbers can have leading 0s which need to be preserved, so an integer type won't work. Perhaps what you need is a text type with a check constraint to limit it to digits.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Suresh Seema 2019-07-19 06:01:45 pguint Installation error in PostgreSQL server version 11.2
Previous Message Shreeyansh Dba 2019-07-18 16:12:18 Re: How do I add/edit 'digit' property into PGAdmin4 ?