Re: int4 to varchar length (pgadmin3) issue

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: operationsengineer1(at)yahoo(dot)com, pgsql-novice(at)postgresql(dot)org
Subject: Re: int4 to varchar length (pgadmin3) issue
Date: 2006-08-31 20:14:53
Message-ID: 20060831201453.29115.qmail@web31805.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

> this is an additional defined constraint, correct?

Yes, it will add a constraint to your table that specifically works on that particualar field.

> is
> this constraint added automagically by pgadmin when
> you enter a length value or is this a different
> method to achieve a similar result?

I am not exactly sure what your question is, but the ALTER TABLE <...> is a Data Definition
statement. Once the statement comments, then any future attempts by any connection to
update/insert will blocked if the data doesn't meet the constraint criteria.

Regards,

Richard Broersma Jr.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Phillip Smith 2006-08-31 23:35:22 Re: moving content of a table to another table
Previous Message Ray Stell 2006-08-31 19:42:22 admin technical training