Re: using xmin in a query?

Поиск
Список
Период
Сортировка
От Rodrigo Gonzalez
Тема Re: using xmin in a query?
Дата
Msg-id 4E31AE90.3040605@estrads.com.ar
обсуждение исходный текст
Ответ на Re: using xmin in a query?  (Michael Nolan <htfoot@gmail.com>)
Список pgsql-general
On 07/28/2011 03:09 PM, Michael Nolan wrote:


On Thu, Jul 28, 2011 at 12:23 PM, Andy Colson <andy@squeakycode.net> wrote:
On 7/28/2011 11:40 AM, Michael Nolan wrote:
Why does this query succeed:

select count(*) from tablename where xmin = 2

while this query fails:

select count(*) from tablename where xmin != 2


You probably want <>.

That doesn't work either.

What about select count(*) from tablename where xmin::text::integer != 2;

Regards

Rodrigo

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

Предыдущее
От: Wells Oliver
Дата:
Сообщение: I'm in the depths of a CAST nightmare and I can't work my out
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: How to implement autostart of postgres?