Re: [GENERAL] How to insert .xls files into database

2006-07-07 Thread Adrian Klaver
So far I have only got this to work with the Postgres SDBC driver- http://dba.openoffice.org/drivers/postgresql/index.html 1) Open the Data Source (F4) window in the spreadsheet. 2) Make a connection to the database. I usually do this by opening a table. This is fairly important, otherwise when yo

Re: [GENERAL] How to insert .xls files into database

2006-07-07 Thread John D. Burger
One option is to write a Python translator to create CSV files, or even an uploader to go directly from the Excel files to the database. There is at least one module to read Excel files, in all their complexity: http://cheeseshop.python.org/pypi/xlrd/0.5.2 and a number of Postgres modules:

re: [GENERAL] How to insert .xls files into database

2006-07-07 Thread lanczos
> [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Klaver > > I guess the solution depends on what is a 'large amount of data'. The > most time consuming part is going to be converting the single data > elements at the top of each sheet into multiple elements. I would > create columns for the data

Re: [GENERAL] How to insert .xls files into database

2006-07-07 Thread Adrian Klaver
I guess the solution depends on what is a 'large amount of data'. The most time consuming part is going to be converting the single data elements at the top of each sheet into multiple elements. I would create columns for the data in the sheet. At the same time I would order the columns to match

Re: [GENERAL] How to insert .xls files into database

2006-07-07 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Parang Saraf wrote: > Hey, > > I am using Postgresql 8.1.4 on windows. I have a large amount of data > stored > in .xls files which I want to insert into my database. > > The columns in .xls files are not exactly compatible with the database > schema

[GENERAL] How to insert .xls files into database

2006-07-07 Thread Parang Saraf
Hey,I am using Postgresql 8.1.4 on windows. I have a large amount of data stored in .xls files which I want to insert into my database. The columns in .xls files are not exactly compatible with the database schema. For example the event_id in every .xls file starts with 1 while for my database even