Re: newbie: Column CHECK(col contains '@') ?

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: newbie: Column CHECK(col contains '@') ?
Дата
Msg-id web-1457726@davinci.ethosmedia.com
обсуждение исходный текст
Ответ на newbie: Column CHECK(col contains '@') ?  (john-paul delaney <jp@justatest.com>)
Список pgsql-novice
JP,

> One column in my table contains email addresses - I want to check
> that any value entered contains a '@'.  How do I create a CONSTRAINT
> or CHECK to ensure this when creating the table?

Here's the online documentation.  It's very good, you should give it a
try!

http://www.us.postgresql.org/users-lounge/docs/7.2/postgres/sql-createtable.html

-Josh Berkus

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

Предыдущее
От: john-paul delaney
Дата:
Сообщение: newbie: Column CHECK(col contains '@') ?
Следующее
От: "G"
Дата:
Сообщение: Selecting random rows using weights