• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Active record last insert ID

#1
[eluser]Unknown[/eluser]
I have a table with an auto_incrementing column that's set as the primary key. Is it possible to get the number from this column after doing an insert with active record without having to run another query? I couldn't find anything in the docs or the forums.

Thanks!
Dan


Messages In This Thread
Active record last insert ID - by El Forum - 08-01-2008, 01:05 PM
Active record last insert ID - by El Forum - 08-01-2008, 02:16 PM
Active record last insert ID - by El Forum - 08-01-2008, 02:23 PM
Active record last insert ID - by El Forum - 08-03-2008, 08:50 PM
Active record last insert ID - by El Forum - 08-03-2008, 10:58 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.