Welcome Guest, Not a member yet? Register   Sign In
getting the insert_id from insert_batch
#1

[eluser]Clooner[/eluser]
I'm not sure if this is possible but I want to retrieve the inserted id's from the insert_batch function. If I use the insert_batch function I only get the first inserted id and not the full list of inserted id's. Is there a way to retrieve these or do I just have to loop the regular insert in this case?
#2

[eluser]jmadsen[/eluser]
from what I could tell looking at the DB_Active_Rec file, the insert_batch() is only manipulating your array into a bunch of separate INSERT strings and running them one at a time.

You would do just as well (and it may be the only way) with a loop, but I'm not the authority on this.
#3

[eluser]mahni1390[/eluser]
[url="http://www.parscanada.com"]مهاجرت به کانادا[/url]




Theme © iAndrew 2016 - Forum software by © MyBB