Re: [OT] Execute multiple statements in MySQL

2005-09-22 Thread j-lists
I guess this is a bit of a digression but since we are on the topic... IMHO finding multiple statements using semicolons would be less than ideal, allowing the nesting of insert/update/delete/select tags would be a more structured way to implement it and would remove the SQL parsing burden from iBa

RE: Ibatis and flat files?

2005-09-22 Thread Warren Bell
CsvBeans looks promising, I will try it out. I am using PostgreSQL and have heard of the COPY feature, but have not looked into it yet. Thanks for the sugestions, > -Original Message- > From: Alan Hicks [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 22, 2005 11:39 AM > To: user-jav

Re: Ibatis and flat files?

2005-09-22 Thread Alan Hicks
I stumbled across a project: www.csvBeans.org . It generates beans from a CSV file. The mappings are defined using XML. Worth a look -saved me loads of time. Alan. On Thu, 22 Sep 2005 18:57:57 +0100, Warren Bell <[EMAIL PROTECTED]> wrote: My company has several vendors who send us invoi

Re: Ibatis and flat files?

2005-09-22 Thread Philippe Laflamme
From experience, your best bet is to load the flat file into a staging table in your database, process the data in that table (convert to upper case, trim strings, fix dates, etc.) then insert into your "live" tables. In Data Warehousing, this process is called ETL (extract transfer and load

Re: Ibatis and flat files?

2005-09-22 Thread Nathan Maves
Oracle also has a utility called SQL*Loader http://www.orafaq.com/faqloadr.htm On Sep 22, 2005, at 12:06 PM, Larry Meadors wrote: There are jdbc drivers for csv files, that could simplify one end of the task. http://tinyurl.com/bwrpn You may want to look to your db vendor, too - I know M$

Re: Ibatis and flat files?

2005-09-22 Thread Larry Meadors
There are jdbc drivers for csv files, that could simplify one end of the task. http://tinyurl.com/bwrpn You may want to look to your db vendor, too - I know M$ SQL has tools for importing this sort of data...and i suspect others do, too. Larry On 9/22/05, Warren Bell <[EMAIL PROTECTED]> wrote:

Ibatis and flat files?

2005-09-22 Thread Warren Bell
My company has several vendors who send us invoices in the form of comma delimited flat text files via FTP. My question is, is there a way using Ibatis to pul in the data from the text file and insert it into a table. I can get the data in manually and use Ibatis to insert into the table, but it wo