I need to update a table with 13,000 rows. And this table contains a field called "track_cep_id" and all ids are 0. I need to update this with a loop so I do not duplicate the fields (EX: 1, 2, 3, 4 ...). Could someone help?
DROP TABLE IF EXISTS 'pl_joseanmatias_faixa_cep_peso';
CREATE TABLE 'pl_joseanmatias_faixa_cep_peso' (
'faixa_cep_id' int(11) NOT NULL,
'title' varchar(150) NOT NULL,
'weight_min' float NOT NULL,
'weight_max' float NOT NULL,
'postcode_min' int(11) NOT NULL,
'postcode_max' int(11) NOT NULL,
'cost' float NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;