Reputation: 16792
Say I have these two ALTER TABLEs:
ALTER TABLE tableName ADD COLUMN colName INT(11) AFTER colName2
ALTER TABLE tableName ADD COLUMN colName INT (11)
Let's say tableName has 400 columns and one million rows. Should those ALTER TABLEs run at the same speed or should one be faster than the other?
Upvotes: 0
Views: 149
Reputation: 2719
400 columns is terrible :)
In theory both variants will run in same time
Upvotes: 2