ecpg compile

From: "Sirish Kumar" <sirishk(at)noida(dot)hclt(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: ecpg compile
Date: 2000-01-14 04:07:21
Message-ID: 009601bf5e44$dc00f2e0$edfea0cc@noida.hclt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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
----------------------------------------

Browse pgsql-general by date

  From Date Subject
Next Message The Hermit Hacker 2000-01-14 05:02:47 Re: [GENERAL] Database synchronisation over the internet...
Previous Message Barry Baldwin 2000-01-14 02:07:47 Image data type