Re: duplicating table

Поиск
Список
Период
Сортировка
Искать
От
Stephan Szabo
Тема
Re: duplicating table
Дата
Msg-id
20020110080606.H82370-100000@megazone23.bigpanda.com
Ответ на
duplicating table (Johnson, Shaunn)
Список
Дерево обсуждения
Re: duplicating table "Campano, Troy" <Troy.Campano@LibertyMutual.com>
duplicating tables (accross databases) Jim Martinez <jjm@bigbigorg.org>

> I can alter the table to add the two
> new columns, but I wanted to know if
> I can copy the data from the old table
> into the new table and put the column
> data in the appropriate places
> (leaving column: address2 and mailcode empty)?
>
> I have been trying something like:
>
> [example]
>
> insert into t2_ref_pcg_address
> select name,riskgrp,address,,city,state,zi p,pcgname from t_ref_pcg_address;

It'd probably work if you used NULL or '' where address2 belongs (the two
commas next to each other is probably your problem there).

В списке pgsql-general по дате отправления
От: Tom Lane
Дата:
От: Doug McNaught
Дата:
Сообщение: Re: Performance tips
FAQ