Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f0IJ8Q090458 for ; Thu, 18 Jan 2001 14:08:26 -0500 (EST) (envelope-from pgsql-admin-owner@postgresql.org) Received: from localhost.localdomain ([202.71.153.50]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0I5mg002579 for ; Thu, 18 Jan 2001 00:48:48 -0500 (EST) (envelope-from arathis@cfindia-software.com) Received: from cfindia-software.com (IDENT:arathi@[192.168.2.67]) by localhost.localdomain (8.9.3/8.9.3) with ESMTP id QAA31726 for ; Thu, 18 Jan 2001 16:54:28 +0530 Message-ID: <3A668389.947A4189@cfindia-software.com> Date: Thu, 18 Jan 2001 11:17:53 +0530 From: "Arathi,S" Reply-To: arathis@cfindia-software.com Organization: Computer factory X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Problems in creating table while migrating from Foxpro to Postgress using JDBC Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200101/117 X-Sequence-Number: 494 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.