Answer the question
In order to leave comments, you need to log in
To add records in the main table and child within one transaction?
Hello. To add records in the main table and child within one transaction? Thank you.
Answer the question
In order to leave comments, you need to log in
The question is in the applications that you use.
But, if we talk only about postgresql, then there is an opportunity:
The first option is preferable.
With regards to technical means, all sorts of ORMs can do this automatically.
UPD. Here you can see the general documentation
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question