Magento 2
How to get the maximum value of a database table's column programmatically
Development
Database
database
,
sql
dmitrii_fediuk
(Dmitrii Fediuk)
January 26, 2016, 3:13pm
2
See also:
How to get the next autoincrement id for a database table programmatically
How to programmatically execute the «SHOW TABLE STATUS» SQL statement for a database table
A code from the \Magento\Catalog\Model\ResourceModel\Category::_getMaxPosition() method can be simplified from 5 lines to 1
show post in topic