existsman
existsman

Reputation: 39

how find max values using MySQL

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

Answers (1)

WhiteFang34
WhiteFang34

Reputation: 72049

Are you looking for a query like this:

SELECT MAX(id) FROM table;

Upvotes: 1

Related Questions