How can I get the auto_increment column name from a table (NOT THE LAST INSERT) ?
eg:
create table members (member_id int auto_increment, name char(50), primary key(member_id));
What can I do to get member_id from table elements.
I am making a php class and I am going to add a method that will allow you to get the following:
$members->findById(123);
He needs to know in order to find the auto-increase column and build a query based on this, and then execute the query.
source share