Re: postgresql vs mysql

Поиск
Список
Период
Сортировка
От CaT
Тема Re: postgresql vs mysql
Дата
Msg-id 20070222032317.GG3107@zip.com.au
обсуждение исходный текст
Ответ на Re: postgresql vs mysql  (Chris <dmagick@gmail.com>)
Список pgsql-general
On Thu, Feb 22, 2007 at 01:08:04PM +1100, Chris wrote:
> In postgres, to stop an empty blank string:
>
> create table a(a text not null check (char_length(a) > 0));

What's wrrong with using

a <> ''

sd the check? Or is this just a flavour thing?

--
    "To the extent that we overreact, we proffer the terrorists the
    greatest tribute."
        - High Court Judge Michael Kirby

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

Предыдущее
От: RPK
Дата:
Сообщение: Composite Keys
Следующее
От: Gene
Дата:
Сообщение: how to tell if using unnamed paramaterized queries?