Re: [INTERFACES] Using psqlodb.dll with a 16-bits application - Mailing list pgsql-interfaces

From James Olin Oden
Subject Re: [INTERFACES] Using psqlodb.dll with a 16-bits application
Date
Msg-id 81Jul6.114032edt.35713@gateway.lee.k12.nc.us
Whole thread Raw
In response to RE: RE: [INTERFACES] Using psqlodb.dll with a 16-bits application  (Alexander Elsenaar <a.elsenaar@viewpoint.nl>)
List pgsql-interfaces


>  It is not a regular application but a development environment. (Clarion for Windows 2.003)  and I am trying to
importa table definition. Any other sugestion? 

  If this is just a one time thing and you are going from Clarion to Postgress, just export the DBF files (I believe
Clarionis DBF formated) as SDF format, and transfer this file over to the Postgres machine.  Once there use the copy
commandto get them in, or write a quick awk script to generate a bunch of selects. 

If your going the other way do a select on the table selecting all fields, such as:

   select * from blah;

write this select statement to a file and then type:

  psql -f  queryfile > results

Now you have a fixed length text file (with little bars between each field).  With a little massaging you should be
ableto export it into Clarion. 

These are one time solutions though, and will not help you if you need to do this over and over again...james


pgsql-interfaces by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [INTERFACES] Already asked?
Next
From: Peter T Mount
Date:
Subject: Re: [INTERFACES] pb compiling JDBC interface