pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sirish Kumar <sirishk@titanium.noida.hclt.com>
To: pgsql-interfaces@postgreSQL.org
Subject: Create database  problem
Date: Fri, 7 Jan 2000 17:50:18 +0530
Message-ID: <00ad01bf5909$90147220$edfea0cc@noida.hclt.com> (raw)

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



************
----------------------------------------
Best Regards
Sirish Kumar
HCL Technologies (India) Pvt. Ltd.
Ph : +91-11-8-510813/701/702 Ext.1107
Fax : +91-11-8-510713
----------------------------------------




Message-ID: <00ad01bf5909$90147220$edfea0cc@noida.hclt.com>
Permalink:  ../00ad01bf5909$90147220$edfea0cc@noida.hclt.com/
Also on:    postgresql.org/message-id/00ad01bf5909$90147220$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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: sirishk@titanium.noida.hclt.com
  Subject: Re: Create database  problem
  In-Reply-To: <00ad01bf5909$90147220$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