How can I update a table and create column with the id numbers for each entry in that ID column?
The table currently looks like:
city
-------------
New York
Los Angeles
London
Belgrade
I need the column in this table that would have the ID number of each city which would be ordered by column city ASC.
Something like:
id | city
----------------
1 | Belgrade
2 | London
3 | Los Angeles
4 | New York
Can I do this using mysql query or I need to do that using PHP and Mysql?
so in your case its