Re: upper case constraint?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: upper case constraint?
Дата
Msg-id Pine.BSF.4.21.0109251047060.10402-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на upper case constraint?  ("Gowey, Geoffrey" <ggowey@rxhope.com>)
Список pgsql-general
On Tue, 25 Sep 2001, Gowey, Geoffrey wrote:

> Just wondering if anyone knows off hand how to make it so all inserts on a
> column will wind up being tranparently stored as uppercase (ex: ee1234567 =
> EE1234567).

Probably a trigger, before update/insert on table:

create function gouppertable_col() returns opaque as '
begin
 NEW.col := upper(NEW.col);
 return NEW;
end;
' language 'plpgsql';


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

Предыдущее
От: Doug McNaught
Дата:
Сообщение: Re: upper case constraint?
Следующее
От: Pedro Alves
Дата:
Сообщение: Re: upper case constraint?