Pesan ulang Tabel Kunci Primer Indeks Setelah Menghapus beberapa baris
UPDATE tbl SET catid = (SELECT COUNT(*) FROM tbl t WHERE t.catid <= tbl.catid);
Tough Thrush
UPDATE tbl SET catid = (SELECT COUNT(*) FROM tbl t WHERE t.catid <= tbl.catid);