| From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
|---|---|
| To: | "Johnson, Shaunn" <SJohnson6(at)bcbsm(dot)com> |
| Cc: | <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: duplicating table |
| Date: | 2002-01-10 16:07:25 |
| Message-ID: | 20020110080606.H82370-100000@megazone23.bigpanda.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
> 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).
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Nick Fankhauser | 2002-01-10 16:07:27 | Re: duplicating table |
| Previous Message | Doug McNaught | 2002-01-10 16:03:54 | Re: Performance tips |