Quantcast
Channel: How to use 2 auto increment columns in MySQL phpmyadmin - Database Administrators Stack Exchange
Browsing latest articles
Browse All 5 View Live

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 Article



Answer 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 Article

Answer 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 Article

Answer 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 Article

How 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

Browsing latest articles
Browse All 5 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>