pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedProblems in creating table while migrating from Foxpro to Postgress using JDBC
2+ messages / 2 participants
[nested] [flat]
* Problems in creating table while migrating from Foxpro to Postgress using JDBC
@ 2001-01-18 05:47 Arathi,S <arathis@cfindia-software.com>
2001-01-18 22:17 ` Re: Problems in creating table while migrating from Foxpro to Postgress using JDBC Jeremy Buchmann <jeremy@wellsgaming.com>
0 siblings, 1 reply; 2+ messages in thread
From: Arathi,S @ 2001-01-18 05:47 UTC (permalink / raw)
To: pgsql-admin
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Problems in creating table while migrating from Foxpro to Postgress using JDBC
2001-01-18 05:47 Problems in creating table while migrating from Foxpro to Postgress using JDBC Arathi,S <arathis@cfindia-software.com>
@ 2001-01-18 22:17 ` Jeremy Buchmann <jeremy@wellsgaming.com>
0 siblings, 0 replies; 2+ messages in thread
From: Jeremy Buchmann @ 2001-01-18 22:17 UTC (permalink / raw)
To: arathis@cfindia-software.com; pgsql-admin
> 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)
int4 doesn't need a size...it's always 4 bytes, AFAIK. So it should be:
Name varchar(20), id int4
--Jeremy
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-01-18 22:17 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-18 05:47 Problems in creating table while migrating from Foxpro to Postgress using JDBC Arathi,S <arathis@cfindia-software.com>
2001-01-18 22:17 ` Re: Problems in creating table while migrating from Foxpro to Postgress using JDBC Jeremy Buchmann <jeremy@wellsgaming.com>
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