|
Is this the proper logic (suedo code) for what I am trying to do?
I want to Take the data out of one dB and Insert it into another. All the fields match in both dBs I am trying to write a script that will perform the task. The structure of the dB that I am copying information from, has a field that is marked transferred or not. "1" stands for not transferred, and is default. "0" is transferred.
Will my code logic work?
If loop checks for record marked with a "1" in the transfer field;
If "no" redirect to main menu page;
If "yes" it copies all the values of the record into a array;
Inserts new value of "0" in the transfer field;
Closes the dB connection;
Converts the values in the array to variables ;
Opens a connection to the dB I want information transferred to;
Inserts the variables into the dB as a new record;
Close loop;
Then performs this action again until all records are transferred.
|