See also:
- How to get the maximum value of a database table’s column programmatically
- How to programmatically execute the «SHOW TABLE STATUS» SQL statement for a database table
- Propose to move the
\Magento\ImportExport\Model\ResourceModel\Helper::getNextAutoincrement()
method to the\Magento\Framework\DB\Adapter\Pdo\Mysql
class and to the\Magento\Framework\DB\Adapter\AdapterInterface