How to programmatically execute the «SHOW TABLE STATUS» SQL statement for a database table

Use the \Magento\Framework\DB\Adapter\AdapterInterface::showTableStatus() method:

The default MySQL implementation is the \Magento\Framework\DB\Adapter\Pdo\Mysql::showTableStatus() method:

Usage examples



See also: