Easy mysql question regarding primary keys and an insert
        Posted  
        
            by MPX
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by MPX
        
        
        
        Published on 2008-10-03T00:07:26Z
        Indexed on 
            2010/05/20
            18:00 UTC
        
        
        Read the original article
        Hit count: 208
        
In mysql, how do I get the primary key used for an insert operation, when it is autoincrementing.
Basically, i want the new autoincremented value to be returned when the statement completes.
Thanks!
© Stack Overflow or respective owner