Re: casting from integer to boolean

From: "Adam Rich" <adam(dot)r(at)sbcglobal(dot)net>
To: "'Seb'" <spluque(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: casting from integer to boolean
Date: 2008-03-26 22:34:59
Message-ID: 04dd01c88f91$a032c1d0$e0984570$@r@sbcglobal.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Thanks Richard. Is there a way to do it without changing the INSERT
> command? As I mentioned, there are many more columns of different
> types, so finding and replacing the VALUES would be very difficult.

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) ?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sam Mason 2008-03-26 22:46:08 Re: casting from integer to boolean
Previous Message Seb 2008-03-26 22:28:18 Re: casting from integer to boolean