Aaron wrote:
How can I select the last record that was inserted? An ASP/VB example would
be great too!
  
I believe you have it already.
I use:

select last_insert_id() as MyID

but from memory @@identity is a synonym of last_insert_id()

Dan

--

sig
Daniel Kasak

IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to