| From: | Sean Davis <sdavis2(at)mail(dot)nih(dot)gov> |
|---|---|
| To: | Michael Romagnoli <michael(at)houseind(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Novice Question |
| Date: | 2005-03-01 21:34:42 |
| Message-ID: | b6321ed01a63bb4c9eb1dea8f8ba81f7@mail.nih.gov |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Mar 1, 2005, at 4:23 PM, Michael Romagnoli wrote:
>
> I am new to postgresql, having previously worked with mysql mostly.
>
> What kind of command would I run if I wanted to copy an entire table
> (along with renaming it, and, of course, all data from the first table
> - some of which is binary)?
>
> Thanks,
>
> -Mike
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
select * into table new_table from old_table;
That's it.
Sean
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Scott Frankel | 2005-03-01 21:42:18 | sql join question |
| Previous Message | Michael Romagnoli | 2005-03-01 21:30:19 | Re: Novice Question |