Postgres 9.4 how can i do a max constraint on an int field
<p>I am new to postgres and have been trying to find a way to put a max limit on a Field. I have a field in the database named <strong>friends</strong> and it is of type <strong>INT</strong> I want to put a constraint on that field of 30 so that no number saved in that field could be higher than 30. I am using postgres 9.4 and PgAdmin 3 . I am reading this page <a href="http://www.postgresql.org/docs/9.4/static/sql-set-constraints.html" rel="nofollow">http://www.postgresql.org/docs/9.4/static/sql-set-constraints.html</a> but can not find anything.</p>