Re: reindex primary key autoincrement at mysql

From: Tony Mountifield <tony_at_mountifield.org>
Date: Fri, 29 Dec 2017 10:19:28 +0000 (UTC)
Message-ID: <p254rg$2lr$1_at_softins.softins.co.uk>


In article <p2535n$v74$1_at_news.icm.edu.pl>, Jakub <jak74_at_interia.pl> wrote:
> Welcome
>
> How to re index primary key autoincrement column at big table in mysql
> / mariadb ?
>
> greeting Jakub

Hi Jakub,

Why do you want to do that? What problem are you trying to solve?

Do any other tables have a column pointing to that key as a foreign key?

It is possible, but would normally involve copying the table to another new table and then renaming them. But there is not usually any reason to do so, which is why I asked the above questions. There may be a better solution.

Cheers
Tony

-- 
Tony Mountifield
Work: tony_at_softins.co.uk - http://www.softins.co.uk
Play: tony_at_mountifield.org - http://tony.mountifield.org
Received on Fri Dec 29 2017 - 11:19:28 CET

Original text of this message