Re: casting from integer to boolean

Поиск
Список
Период
Сортировка
От Adam Rich
Тема Re: casting from integer to boolean
Дата
Msg-id 04dd01c88f91$a032c1d0$e0984570$@r@sbcglobal.net
обсуждение исходный текст
Ответ на Re: casting from integer to boolean  (Seb <spluque@gmail.com>)
Ответы Re: casting from integer to boolean  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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) ?



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

Предыдущее
От: Seb
Дата:
Сообщение: Re: casting from integer to boolean
Следующее
От: Sam Mason
Дата:
Сообщение: Re: casting from integer to boolean