Re: CHECK

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: CHECK
Дата
Msg-id 327344.96515.qm@web31812.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на CHECK  (scuffio <simone.dicola@gmail.com>)
Список pgsql-general
--- scuffio <simone.dicola@gmail.com> wrote:

> I would want to know as I make to control that the length of the field
> character insert is of one sure dimension

A check constraint can certainly do this.  If you want to generalize it, you can roll you check
constraint into a domain (user defined column type).
http://www.postgresql.org/docs/8.2/interactive/ddl-constraints.html
http://www.postgresql.org/docs/8.2/interactive/sql-createdomain.html

Regards,
Richard Broersma Jr.


В списке pgsql-general по дате отправления:

Предыдущее
От: Richard Broersma Jr
Дата:
Сообщение: Re: Rule vs Trigger
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Error or bug?