Re: Change Default Database
От
Rodrigo De León
Тема
Re: Change Default Database
Дата
Msg-id
a55915760702261043s5c52101cqa3e8dd07b5d6f348@mail.gmail.com
Ответ на
Re: Change Default Database (Rommel the iCeMAn)
Список
Дерево обсуждения
Change Default Database "Rommel the iCeMAn" <icecrew@gmail.com>
Re: Change Default Database Scott Marlowe <smarlowe@g2switchworks.com>
Re: Change Default Database Richard Huxton <dev@archonet.com>
Re: Change Default Database "Rodrigo De León" <rdeleonp@gmail.com>
Re: Change Default Database "Rommel the iCeMAn" <icecrew@gmail.com>
Re: Change Default Database "Rodrigo De León" <rdeleonp@gmail.com>
On 2/26/07, Rommel the iCeMAn wrote: > 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 ... > > > -- > -- 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 :-( > > > > Rommel Edwards > Software Developer, > Barbados, Caribbean. \c only works in psql. See: http://www.postgresql.org/docs/8.2/static/app-psql.html
В списке pgsql-sql по дате отправления