Re: Novice Question

Поиск
Список
Период
Сортировка
От Edmund Bacon
Тема Re: Novice Question
Дата
Msg-id m3ll97jb4g.fsf@elb_lx.onesystem.ca
обсуждение исходный текст
Ответ на Novice Question  (Michael Romagnoli <michael@houseind.com>)
Список pgsql-general
michael@houseind.com (Michael Romagnoli) writes:

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

SELECT * INTO newtable FROM oldtable;

Note that this doesn't construct indexes, Foreign keys, constraints,
etc.

If by 'binary data' you mean BLOBs, I'd expect the above to work.
Other than that, AFAIUI you have no reasonable expectation that your data is
stored in any meaningful binary format by the database.  All data
could be internally stored as strings (though that might be very
slow).



--
Remove -42 for email

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

Предыдущее
От: Steffen Boehme
Дата:
Сообщение: Performance of Views
Следующее
От: Ragnar Hafstað
Дата:
Сообщение: Re: sql join question