On Jun 10, 9:40 am, 360R8 <[EMAIL PROTECTED]> wrote:
> Can someone please show me how to obtain the last_insert_id from a
> mysql table?

I don't use MySQL, but it's possible that on MySQL:

  id = DB[:items].insert(:name=>'Name')
  id # id of the row you just inserted

Note that this is just speculation from looking at the MySQL adapter
code, you should try it and see it it works.

Jeremy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to sequel-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to