[Pdns-users] Supermasters And Database

AJ McKee aj.mckee at druid-dns.com
Mon Aug 23 14:32:36 UTC 2004


> I don't understand; why don't you just do inserts like usual and let the
auto_increment property on the id columns take care of choosing the id,
which you can then obtain from last_insert_id()?

> Is there a good reason why you are manually trying to set the id field in
either of those tables?

Hi Ben,

I could use auto increments with MySQL, but I am trying to be as database
independent as possible so that if I need to change the database platform to
postgres, oracle, or even M$ SQL I can with minimal disruption to my
codebase.

Aj





More information about the Pdns-users mailing list