From: Arathi,S <arathis@cfindia-software.com>
To: pgsql-admin@postgresql.org
Subject: Problems in creating table while migrating from Foxpro to Postgress using JDBC
Date: Thu, 18 Jan 2001 11:17:53 +0530
Message-ID: <3A668389.947A4189@cfindia-software.com> (raw)
Hi all,
I am migrating the databases from Foxpro to Postgress using JDBC.
I am extracting all the field values,type and width from the
Foxpro database and putting that as a string .
Ex: String stru
Name varchar(20),id int4(4)
And then I have another string 'Query' which says
create table table_name( stru).
I am getting Error:Parser error at or near "(".
This is because of the brackets for the width.
If I don't specify the width, then I am able to create the table with
the default width for the respective type.I am using the
PreparedStatement .
(i.e)
PreparedStatement pst =con.preparestatement(Query);
pst.executeUpdate();
Please help me out with this. It's urgent.
Arathi.
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: arathis@cfindia-software.com
Subject: Re: Problems in creating table while migrating from Foxpro to Postgress using JDBC
In-Reply-To: <3A668389.947A4189@cfindia-software.com>
References: <3A668389.947A4189@cfindia-software.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