• Hi,

    Does anyone know how WordPress generates its primary keys for things like links and link categories? I’m looking to do something similar, which involves joining two database tables with a linking table (a many-to-many relationship). The tables each have single primary keys. The problem is that the keys are automatically generated with MySQL’s AUTO INCREMENT facility, so it’s hard to know what key the database assigns. Since this is very similar to the way WordPress handles links and categories, I was hoping someone knew how WordPress does it.

The topic ‘How WordPress Generates Primary Keys’ is closed to new replies.