Tuesday, February 23, 2016

How to select max id from mysql table. How to find last one row added to mysql table?

SELECT MAX(id) AS `id` FROM `main`

Here `main` is the name of your mysql table

No comments:

Post a Comment

How to show CPU model and information in Ubuntu 16 terminal

less /proc/cpuinfo