I want to get the last inserted ID when i insert the new data into the database help me with msql query
While inserting the record are you inserting the ID serially or randomly?
If you are inserting serially then use MAX() function.
SELECT MAX(ID) FROM TableName
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.