using matches on int4

Поиск
Список
Период
Сортировка
От Gregory Holston
Тема using matches on int4
Дата
Msg-id Pine.SUN.3.91.990204120927.10871E-100000@shell
обсуждение исходный текст
Список pgsql-sql
Hi List,

I tried to do this query:
real=> select * from users where id ~ 2;
ERROR:  There is no operator '~' for types 'int4' and 'int4'
        You will either have to retype this query using an explicit cast,
        or you will have to define the operator using CREATE OPERATOR
My question is how would I create an operator?

Thanks in advance,

-Greg

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Performance Question
Следующее
От: "Jackson, DeJuan"
Дата:
Сообщение: RE: [SQL] using matches on int4