Selectng row with highest id. https://stackoverflow.com/questions/7604893/sql-select-row-from-table-where-id-maxid https://stackoverflow.com/questions/1405393/finding-the-next-available-id-in-mysql
SELECT
MAX(IDENTITYCOL) AS MaximumIdentity
FROM
[konnex].[dbo].[AppContacts]
SELECT Auto_increment FROM information_schema.tables WHERE table_name='the_table_you_want'
SELECT row
FROM table
WHERE id=(
SELECT max(id) FROM table
)