I'm trying to do a select statement using dbi to get the last inserted id. I've tried 'select @@identity' and it doesn't seem to work and havn't been able to find anything around the net.
Was just wondering what command or what query to use to get the last inserted id. Thanks