Re: Order of rows on inserting multiple rows
I'm need not only last inserted id, i need to map inserted values to their ids.
For example, i insert values ('dog'), ('cat'), ('cow') i one insert statement. And in my code i want to assign to each value its ID. Like this:
1 -> dog
2 -> cat
3 -> cow
If i insert simple values - that's ok - i can select them back. But i insert JSON documents and it is not good to make SELECT WHERE json IN (...). I even doubt that this will work...
So i'm looking for some elegant solution.
Subject
Written By
Posted
December 10, 2018 08:24AM
December 10, 2018 10:36AM
Re: Order of rows on inserting multiple rows
December 11, 2018 02:50AM
December 11, 2018 01:59PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.