| От | Richard Huxton |
|---|---|
| Тема | Re: Change Default Database |
| Дата | |
| Msg-id | 45E311C0.5090909@archonet.com обсуждение исходный текст |
| Ответ на | Change Default Database ("Rommel the iCeMAn" <icecrew@gmail.com>) |
| Список | pgsql-sql |
Rommel the iCeMAn wrote: > Hi list, > > I wrote a database creation script that begins with commands to drop the > existing database (if it exists) and create it from scratch. These commands > execute fine, the problem is that all subsequent commands are executed on > the default database 'postgres'. What command can I use to set the default > database to my newly created database (for the duration of the script)? SQL > Server has a 'USE [dbname]' command, is there an equivalent command in > PostgreSQL? See "man psql" (or the client applications section of the manuals) for details on the backslash commands. \c will be what you're after. -- Richard Huxton Archonet Ltd
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера