Re: casting from integer to boolean - Mailing list pgsql-general

From Seb
Subject Re: casting from integer to boolean
Date
Msg-id 8763v9qeou.fsf@patagonia.sebmags.homelinux.org
Whole thread Raw
In response to casting from integer to boolean  (Seb <spluque@gmail.com>)
List pgsql-general
On Wed, 26 Mar 2008 17:34:59 -0500,
"Adam Rich" <adam.r@sbcglobal.net> wrote:

[...]

> Can you import the data into a holding table (with columns defined as
> integer) first, and then use a SQL statement to insert from there into
> the final destination table (casting in the process) ?

Yes, that would be possible, but then I would have to know which columns
need to be casted back into boolean.  I might find a way to do that
though.  Thanks.


--
Seb

pgsql-general by date:

Previous
From: "Richard Broersma"
Date:
Subject: Re: casting from integer to boolean
Next
From: Tom Lane
Date:
Subject: Re: casting from integer to boolean