How can I make an insert in postgresql into this two tables if the id_table1(pk) in table1 has data type serial(autoincrement) and id_table2 in table2 data type is also serial(autoincrement)?
table1
id_table1(PK) columnA columnB
1 a a
2 a b
table2
id_table2(PK) columnC columnD id_table1(FK)
1 a b 1
2 a b 1
3 a b 2
4 a a 2