MySQL Forums :: Connector/NET and C#, Mono, .Net :: Select Last ID?

Advanced Search

Select Last ID?
Posted by: Andreas ()
Date: September 06, 2005 04:58AM

Hello there,

I'm using the MySQL Connector .NET 1.0.5 and I'm trying to figure out how to get the last inserted ID of my Table "ID".

ID is auto_increment. So I got a non constant amount of IDs and I'm trying to select the last entry - or the highest ID in my table ID.

Is there a way to get that value? Thanks!

Options: ReplyQuote

Subject Written By Posted
Select Last ID? Andreas 09/06/2005 04:58AM
Select Max(ID) from xyz James Duerr 09/06/2005 09:48AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.