Java Database - Loop through values in a column and insert into database -


i trying create java program lookup value in column in table, , reference different table see if same value in table. if match, dump full data first table new table.

basically, have table of orders defined unique order id. reference number list of returned orders. if order returned, can dump information order table unsuccessful order table.

i not sure start or if can lead me in right direction. not super java savvy input helpful.

you start breaking problem down smaller steps, until can code each step.

procedurally.

  • open connection database.

  • loop through list of returned orders.

  • for each returned order:

    • read order order table.

    • write order unsuccessful order table.

  • commit database changes.

  • close connection database.

now, think can code something, or need break down further of these steps?


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -