CREATE TABLE `test`.`test_for_d000hg` (
`first` INT NOT NULL AUTO_INCREMENT ,
`second` INT NOT NULL ,
PRIMARY KEY (`first`) );
ALTER TABLE `test`.`test_for_d000hg`
CHANGE COLUMN `first` `first` INT(11) NOT NULL ,
CHANGE COLUMN `second` `second` INT(11) NOT NULL AUTO_INCREMENT ,
DROP PRIMARY KEY ,
ADD PRIMARY KEY (`second`) ;

I remember JPM credit department worked on spreadsheets. So when they outgrew that they went to mysql. Shame when they reached the 4gb limit and everything collapsed.
Thats what happens when boys design a system and bobs code it.
That's a limitation of the MyISAM storage engine, not of MySQL per se. Also, it can be resolved: Overcoming MySQL's 4GB Limit (by Jeremy Zawodny)
Was that available in 2008?

If it was, and you knew about it, you could have made yourself a pot.
I meant in a real-world DB where you have foreign keys and actual data in the tablesworked for me
(To be precise, I did it in MySQL Workbench, and that's the SQL it generated to do my bidding.)

Now, I have theory that Oracle bought SUN to get mySQL to hinder its development, when mySQL went good with stored procs Oracle were not slow in buying the DB up. Don't think Oracle ever wanted Java, they wanted mySQL.