flat-file insert question
From: Leegold (leegold_at_fastmail.fm)
Date: 05/17/04
- Next message: Jeff Zucker: "Re: flat-file insert question"
- Previous message: Pedro Anisio: "Res: Re: Res: Res: RE: Problems changing from 1.30 to 1.42"
- In reply to: Jupiterhost.Net: "Re: DBI CGI help"
- Next in thread: Jeff Zucker: "Re: flat-file insert question"
- Reply: Jeff Zucker: "Re: flat-file insert question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: dbi-users@perl.org Date: Mon, 17 May 2004 11:23:56 -0400
Given a flat-file:
1###A###703
2###D###203
3###E###303
4###J###901
The file is sorted by field2. Field1 (the numbers) is
dependent on the "position" of the record after it's
sorted by field2. Say I wanted to insert a rec. w/field2=C.
I'm using AnyData, so I can use SQL commands on the file.
What's the best strategy to do an insert? I could just append
a record, then do a sort on field2 (eg. unix sort command),
and then perl process to get field1 right. But,
Is the an SQl type way? Or a cleaner way?
Thanks,
Lee
-- http://www.fastmail.fm - Does exactly what it says on the tin
- Next message: Jeff Zucker: "Re: flat-file insert question"
- Previous message: Pedro Anisio: "Res: Re: Res: Res: RE: Problems changing from 1.30 to 1.42"
- In reply to: Jupiterhost.Net: "Re: DBI CGI help"
- Next in thread: Jeff Zucker: "Re: flat-file insert question"
- Reply: Jeff Zucker: "Re: flat-file insert question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]