Hi!
I am loading snapshots from table1 to table2. I want to generate a run id which will be a unique number to identify any job run.
So I will have:
Table1
Table2 (after two consecutive loads, each of which consists of three rows)
ID Name RunID 1 a 1 2 b 1 3 c 1 1 a2 2 2 b2 2 3 c2 2 |
In this example I loaded Table1 into Table2, then updated Name column for each row of Table1, and then again loaded Table1 into Table2.
I want RunID to be generated by target database sequence run_id_seq (PostgreSQL).
Could please give me an advise how to accomplish such task? Thanks!