Re: Cast in PG 8.3

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Cast in PG 8.3
Дата
Msg-id 27937.1202246011@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Cast in PG 8.3  (Franklin Haut <franklin.haut@gmail.com>)
Список pgsql-sql
Franklin Haut <franklin.haut@gmail.com> writes:
> Create Table temp (id int4);
> insert into temp values (1215);
> insert into temp values (1216);
> insert into temp values (1217);
> insert into temp values (1218);
> insert into temp values (1219);
> insert into temp values (1220);
> insert into temp values (1221);
> insert into temp values (1222);
> SELECT * FROM TEMP WHERE id ilike ('%122%');
> 
> return ok, 3 rows (1220, 1221 and 1222)

That usage is simply bizarre.  Why don't you define the column as text,
instead, if that's the type of query you intend to perform on it?
        regards, tom lane


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

Предыдущее
От: "Markus Bertheau"
Дата:
Сообщение: Re: Cast in PG 8.3
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Negative numbers for PK/ID's?