Unix Technical Forum

Check constraints for dummies?

This is a discussion on Check constraints for dummies? within the pgsql Novice forums, part of the PostgreSQL category; --> Hey all, I switched from MySQL to Postgres for some reasons. Eg. checks like this could be implemented: CREATE ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 10:39 PM
Christian Hoffmann
 
Posts: n/a
Default Check constraints for dummies?

Hey all,

I switched from MySQL to Postgres for some reasons.
Eg. checks like this could be implemented:

CREATE TABLE table1 (
field1 INTEGER CHECK ((field1 >= 0) AND (field1 <= 10))
);

Is there a tutorial somewhere with some slightly more
complex examples?

Regards,

Christian

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 03:48 PM.


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