Re: EXCEPT doesn't compare TIMESTAMP type?

From: Alexandr Popov <alexandr(dot)popov(at)nexui(dot)com>
To: shahdipti1980(at)gmail(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: EXCEPT doesn't compare TIMESTAMP type?
Date: 2010-04-23 11:39:46
Message-ID: 201004231439.46973.alexandr.popov@nexui.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Friday 23 April 2010 14:17:32 dipti shah wrote:
> Thanks but I don't have text type in my table.

But you are trying to insert text value 'now' into table, that's why appears this error.
If you want to insert current time try using function now() not text 'now'

In Your case insert should be following
INSERT INTO changelogtest (id, txid, txtime) values (5, 123, now())
except select id, txid, txtime from changelogtest where id=5;

--
Alexandr Popov

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2010-04-23 11:54:39 Re: EXCEPT doesn't compare TIMESTAMP type?
Previous Message Thomas Kellerer 2010-04-23 11:36:29 Re: EXCEPT doesn't compare TIMESTAMP type?