How bad is using SELECT MAX(id) in MYSQL instead of mysql_insert_id() in PHP?
问题 Background: I'm working on a system where the developers seem to be using a function which executes a MYSQL query like "SELECT MAX(id) AS id FROM TABLE" whenever they need to get the id of the LAST inserted row (the table having an auto_increment column). I know this is a horrible practice (because concurrent requests will mess the records), and I'm trying to communicate that to the non-tech / management team, to which their response is... "Oh okay, we'll only face this problem when we have