php - Update/Change all ID in PhpMyAdmin (MySQL) -
i've got problem joomla migration (kunena forum component) when try copy old forum table new one, receive "duplicate error" message.
a simple solution must change values in id column.
the table now:
id | name 1 | foo 2 | bar
etc...
can add numbers "20" every rows? result be:
id | name 201 | foo 202 | bar
etc...
thanks!
update `table` set `id` = concat('20', `id`);
Comments
Post a Comment