Re: Change Default Database

Поиск
Список
Период
Сортировка
От Rommel the iCeMAn
Тема Re: Change Default Database
Дата
Msg-id 008d01c759ca$c131a2f0$b364a8c0@theport.com
обсуждение исходный текст
Ответ на Re: Change Default Database  ("Rodrigo De León" <rdeleonp@gmail.com>)
Ответы Re: Change Default Database  ("Rodrigo De León" <rdeleonp@gmail.com>)
Список pgsql-sql
Thanks for the swift responses,

I tried the \c command but I got the following error:

ERROR: syntax error at or near "\"
SQL state: 42601
Character: 520

Here's a code snippet ...

<snip>
--
-- TOC entry 1685 (class 1262 OID 16453)
-- Name: test_db; Type: DATABASE; Schema: -; Owner: postgres
--

DROP DATABASE IF EXISTS test_db;
CREATE DATABASE test_db WITH TEMPLATE = template0 ENCODING = 'UTF8';


ALTER DATABASE test_db OWNER TO postgres;

\c test_db; -- query tool doesn't like this command :-(

</snip>

Rommel Edwards
Software Developer,
Barbados, Caribbean.



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

Предыдущее
От: "Rodrigo De León"
Дата:
Сообщение: Re: Change Default Database
Следующее
От: Louis-David Mitterrand
Дата:
Сообщение: getting at sequence previous/next values