I have a dump from a system that I'll need to break apart into around 50 individual tables. I'll need to do this a few times a year so I wanted to automate the process.
I'm down to the final part of the program and I'm having a brain poof. I want to copy a whole record out of one table and place it in another. Which of the fifty tables the record will go into is based on a value in field3 of the main table,table name and field3 are exact matches, easy enough.
Each record will have 156 fields, so I'm trying to come up with a way of not having to create a string for this.
Is there a way to grab the all the fields in the record, copy them and append it into another table, the append part I have, it's the copy I can't seem to find an easy way to do.
I'm down to the final part of the program and I'm having a brain poof. I want to copy a whole record out of one table and place it in another. Which of the fifty tables the record will go into is based on a value in field3 of the main table,table name and field3 are exact matches, easy enough.
Each record will have 156 fields, so I'm trying to come up with a way of not having to create a string for this.
Is there a way to grab the all the fields in the record, copy them and append it into another table, the append part I have, it's the copy I can't seem to find an easy way to do.