pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sirish Kumar <sirishk@titanium.noida.hclt.com>
To: PostgreSQL Group <pgsql-admin@postgreSQL.org>
Subject: Database creation
Date: Fri, 7 Jan 2000 11:32:13 +0530
Message-ID: <003c01bf58d4$c013d720$edfea0cc@noida.hclt.com> (raw)
References: <Pine.LNX.4.10.9911262135200.24739-100000@localhost.localdomain>
	<383FE1C0.6114EC92@wgcr.org>

Hello,
     I tried to create database using embedded SQL through following
statements

...
exec sql begin declare section;
   char dbname[]="pgdb";
   ...
 exec sql end declare section;

main()
{
   ...
   exec sql create database :dbname ;
   ...

}

On compilation ecpg gives parser error at "...create database..." statement.

Can anybody help ?


Thanks
Sirish





Message-ID: <003c01bf58d4$c013d720$edfea0cc@noida.hclt.com>
Permalink:  ../003c01bf58d4$c013d720$edfea0cc@noida.hclt.com/
Also on:    postgresql.org/message-id/003c01bf58d4$c013d720$edfea0cc@noida.hclt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: sirishk@titanium.noida.hclt.com
  Subject: Re: Database creation
  In-Reply-To: <003c01bf58d4$c013d720$edfea0cc@noida.hclt.com>
  References: <Pine.LNX.4.10.9911262135200.24739-100000@localhost.localdomain> <383FE1C0.6114EC92@wgcr.org> <003c01bf58d4$c013d720$edfea0cc@noida.hclt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox