RE: [SQL] using matches on int4

Поиск
Список
Период
Сортировка
От Jackson, DeJuan
Тема RE: [SQL] using matches on int4
Дата
Msg-id F10BB1FAF801D111829B0060971D839F6445CB@cpsmail
обсуждение исходный текст
Список pgsql-sql
if you want to match all id's that start with 2 try [you might also what
to create a functional index on id as text(id)]:
 select * from users where id::text ~~ (2::text || '%');
or
 select * from users where id::text ~ ('^' || 2::text);
if you are trying to get exactly 200 use:
 select * from users where id=200;

    -DEJ


> -----Original Message-----
> On Thu, 4 Feb 1999, Jackson, DeJuan wrote:
>
> > What kind of matching are you trying to do?
> > Most likely you don't really need to create an operator.
>
> I was trying to find all people with ids of 200.
>
> -Greg
>

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

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