use a_table; show tables; select found_rows(); +--------------+ | found_rows() | +--------------+ | 28 | +--------------+ 1 row in set (0.00 sec)