Copy-first script
SQL Table Row Counts
Rask oversikt over radantall per tabell.
Forutsetninger
MySQL 8
Gir veiledende radantall fra information_schema.
Klar til bruk
Kodevindu
Koden er optimalisert for rask kopiering og videre tilpasning i eget prosjekt.
SELECT table_name, table_rows
FROM information_schema.tables
WHERE table_schema = DATABASE()
ORDER BY table_name;