MyBB Community Forums
How to get the next auto-increment id? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Development (https://community.mybb.com/forum-68.html)
+---- Thread: How to get the next auto-increment id? (/thread-172151.html)

Pages: 1 2


RE: How to get the next auto-increment id? - Euan T - 2015-06-23

Also note that some databases (such as those being used in master-master replication) actually increment their IDs by 2 rather than 1, which is configurable in the database settings. Really, you're going about this all wrong. If you're having to guess ID values, you've failed in your architecture design.