Hi

 if   ""db.person.insert(name='Juan',age=23)""   is equal to ""db.person[0] 
= dict(name='Juan',age=23)""

how to save the id of the new record in the second case?

h=db.person.insert(name='Juan',age=23)  saves the id in h but:

h=db.person[0] = dict(name='Juan',age=23)  saves the dict in h, not the id!

I need to access to the id in the second case.

thanks

-- 



Reply via email to