/
n-dimens
/
pgloader
Обзор
Документация
Войти
/
n-dimens
/
pgloader
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/sources/mysql/sql/list-table-rows.sql
12 строк
459 B
Ian L
Fix MySQL query to compute number of rows per table (#1128)
11 апр 2020, 19:22
Не верифицирован
11 апр 2020, 19:22
cb989e1
Код
Авторство
О чём код?
-- params: db-name -- including -- filter-list-to-where-clause incuding -- excluding -- filter-list-to-where-clause excluding SELECT table_name, coalesce(cast(data_length/avg_row_length as unsigned), 0) FROM information_schema.tables WHERE table_schema = '~a' and table_type = 'BASE TABLE' ~:[~*~;and (~{table_name ~a~^ or ~})~] ~:[~*~;and (~{table_name ~a~^ and ~})~];