Link to home
Start Free TrialLog in
Avatar of NewWebDesigner
NewWebDesigner

asked on

Adding a new column in MySQL that adds a value for each row in the table

Hello,

I have a table that has about 70 values,  I want to add another column that will contain an auto incrementing number for each row that exists.  So the value of this column, lets call it display order, it '1' in the first row, '2' in the second row, and '70' in the last row.  How can I do this programmatically so that I don't have to enter in all 70 values for this column?

If you could tell me how to do this in phpMyAdmin, as well as in SQL,that would be a plus.
Thanks
ASKER CERTIFIED SOLUTION
Avatar of Kevin Cross
Kevin Cross
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial