loop thru text file or database records and execute sql
Posted: Mon May 01, 2023 10:42 pm
Without going into too much detail as to why I have to do this, I want to explain what I want to do.
I want to create a table where each row is a sql command I want to run. These could be queries, possibly with parameters, could be inserts, deletes.
I would like to be able to loop thru these records and execute the sql statements one at a time. I would also like log in another table the rownumber, maybe even the actual sql statement and how long the statement took to run. I don't think I care about how many records were updated/inserted.
I also want the total queries to be able to run as long as they need to without any timeouts. I will be accessing a mysql database if that's needed.
I am fairly new to RoboTask, so if someone could help me get started that would be great.
Thanks
Alan
I want to create a table where each row is a sql command I want to run. These could be queries, possibly with parameters, could be inserts, deletes.
I would like to be able to loop thru these records and execute the sql statements one at a time. I would also like log in another table the rownumber, maybe even the actual sql statement and how long the statement took to run. I don't think I care about how many records were updated/inserted.
I also want the total queries to be able to run as long as they need to without any timeouts. I will be accessing a mysql database if that's needed.
I am fairly new to RoboTask, so if someone could help me get started that would be great.
Thanks
Alan