i want to grab the id of a data set right after inserting it. i thought about simply doing a quick 'SELECT id FROM table ORDER BY id DESC' and taking the first row as the id, but this banks on the fact that there are not multiple people inserting simultaneously who might end up getting the wrong ID because someone else inserted ANOTHER item before the SELECT statement runs.
any ideas? thanks