Assume i have a two tables with one to many relation. Shop and products.
I want to insert data to this tables in one query(ideal) or use as less as possible queries.
Straingtforward way is to insert row to shop table then get id of last record and insert rows to products table with received id. Unfortunally this is not good in my case because of i have database connection with high latency. Also i have limit access to db and cann't create stored procedures. So what is the solution?