Answer by Arthur Tarasov for How to use 2 auto increment columns in MySQL...
I just ran into this problem and would like to contribute to the answers. I used Ypercube's answer to solve it, but in a slightly different way. First though, Why do you need the second auto increment...
View ArticleAnswer by ypercubeᵀᴹ for How to use 2 auto increment columns in MySQL phpmyadmin
No, you can't. Not out of the box. Possible workarounds: Triggers (an AFTER INSERT trigger). Disadvantages: Plain horror. Comes with all the other disadvantages of triggers, like maintenance and...
View ArticleAnswer by RolandoMySQLDBA for How to use 2 auto increment columns in MySQL...
I have good news and bad newsGOOD NEWSYou can multiple auto_increment valuesBAD NEWSTwo things:It is only available for the MyISAM Storage EngineOnly one numeric auto_increment value is allowed. Each...
View ArticleAnswer by acutesoftware for How to use 2 auto increment columns in MySQL...
Have a look at the triggers tab - you should be able to make a trigger to update a 2nd auto increment column based on an insert. CREATE TABLE IF NOT EXISTS test2 ( id int(11) NOT NULL AUTO_INCREMENT,...
View ArticleHow to use 2 auto increment columns in MySQL phpmyadmin
Is it possible to use 2 auto increment values ?One starting from 0Another starting from 4000400Please help me
View Article