Skip site navigation (1) Skip section navigation (2)

Create database problem

From: "Sirish Kumar" <sirishk(at)titanium(dot)noida(dot)hclt(dot)com>
To: <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Create database problem
Date: 2000-01-07 12:20:18
Message-ID: 00ad01bf5909$90147220$edfea0cc@noida.hclt.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
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
----------------------------------------


pgsql-interfaces by date

Next:From: Adolfo DiazDate: 2000-01-07 13:10:44
Subject: RE: [INTERFACES] INTERFACES ODBC
Previous:From: SAKAIDADate: 2000-01-07 11:15:30
Subject: pgbash-2.0.1 released

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group