Okay, here's what I'm trying to do.
There's a big db table with a thousand entries or so that I'll call 'Live', and with a key set to auto-increment.
A bunch of interns have been building excel files of similar data to be added to the Live table. There are about 500 entries right now. My new employer wants them to be added about 25 per day to the big table. (today's my first day and I haven't used MySQL in a while and I've inherited a bit of a nest.) He's thinking it's a good idea to add them one at a time.
By hand.
Yech.
And it's only going to get bigger.
I want to write a script that will pull all of them from the text file into their own table called Pending, then add 25 by running a script every day that will pick up the next 25, put them in the Live table and delete them from the Pending table. So I'd like to write a script that I can point at a table and push run and then go make myself a cup of tea.
Once I have this running smoothly, I'd like to have three tables. Live, the big one; New, for records that are less than say, three weeks old; and Pending for those records pending live publication.
But that's a little ways away. My immediate goal is not to be entering these records by hand. That would just make me crabby. With the time I save, I can build the New, Live and Pending scheme.
Also, I've never made a script file for batch processing, but it seems the way to go here.