Reputation: 39
how to find max values using MySQL as the database? examples in the database ID (primary key and AutoNumber) data that will come 12. so, in the form at the moment want to add data, automatic number 12 also
Upvotes: 0
Views: 878
Reputation: 72049
Are you looking for a query like this:
SELECT MAX(id) FROM table;
Upvotes: 1