| От | John R Pierce |
|---|---|
| Тема | Re: Syntax To Create Table As One In Another Database |
| Дата | |
| Msg-id | 4EC2BDAA.1090505@hogranch.com обсуждение исходный текст |
| Ответ на | Syntax To Create Table As One In Another Database (Rich Shepard <rshepard@appl-ecosys.com>) |
| Список | pgsql-general |
On 11/15/11 8:42 AM, Rich Shepard wrote: > I need a pointer to the appropriate docs that show me how to specify a > table in a different database. > > What I want is to CREATE TABLE <tablename> AS TABLE > <otherdatabase><same_tablename>; but using a period (dot) to separate the > source database and table name doesn't work. My searches of the 9.0.x > docs > have missed finding this information. use Schemas instead of databases if this is what you need. Combined with search_path, this will get you the exact results you're looking for. in fact, the default search_path is $USER,public, so it will look in a schema named after the current user before it looks in the default schema... -- john r pierce N 37, W 122 santa cruz ca mid-left coast
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера