Unix Technical Forum

Re: int4 to varchar length (pgadmin3) issue

This is a discussion on Re: int4 to varchar length (pgadmin3) issue within the pgsql Novice forums, part of the PostgreSQL category; --> > this is an additional defined constraint, correct? Yes, it will add a constraint to your table that specifically ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 10:09 PM
Richard Broersma Jr
 
Posts: n/a
Default Re: int4 to varchar length (pgadmin3) issue

> 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.


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:13 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com