RE: [SQL] using matches on int4

Поиск
Список
Период
Сортировка
От Jackson, DeJuan
Тема RE: [SQL] using matches on int4
Дата
Msg-id F10BB1FAF801D111829B0060971D839F64459E@cpsmail
обсуждение исходный текст
Ответы RE: [SQL] using matches on int4
Список pgsql-sql
What kind of matching are you trying to do?
Most likely you don't really need to create an operator.
    -DEJ

> -----Original Message-----
> 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 по дате отправления:

Предыдущее
От: Gregory Holston
Дата:
Сообщение: using matches on int4
Следующее
От: Gregory Holston
Дата:
Сообщение: RE: [SQL] using matches on int4