B
B
Bogdan2017-09-25 15:12:27
PostgreSQL
Bogdan, 2017-09-25 15:12:27

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

1 answer(s)
A
Alexander Kuznetsov, 2017-09-25
@DarkRaven

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

  • https://postgrespro.ru/docs/postgrespro/9.6/sql-insert
  • https://www.postgresql.org/docs/current/static/sql...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question