I need to insert data from one table into three different tables (see example below):
before
source_table:
id row_1 row_2 row_3
after
table_1:
obj_id row_1
table_2:
obj_id row_2
table_3:
obj_id row_3
table_1, table_2 and table_3 have the same obj_id (type serial).
Any ideas on how to do that?
row_1
? – a_horse_with_no_name