creating databases

From: Marcel Wolf <mwolfs(at)comcast(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: creating databases
Date: 2004-01-13 14:15:25
Message-ID: 4003FD7D.1080109@comcast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi
I am interested in running a PHP app that when it comes up it checks to
see if the requuired database is present. If not it creates it and the
tables required within. I was trying to do this by pg_connect
(dbname=test) and if I got an error I would trying to use pg_query
(CREATE test). This was disallowed because there was no link?
What is the best way of doing this?
Thanks
Marcel

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Devrim GUNDUZ 2004-01-13 14:17:56 Re: creating databases
Previous Message Eric S. Johansson 2004-01-13 13:26:47 Re: PostgreSQL booting automaticaly