Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving last record when using CreateUUID

Status
Not open for further replies.

calista

Programmer
Jan 24, 2001
545
US
Does anyone have a good way to retrieve info from a record you just inserted into the DB when you are using CreateUUID to generate the primary key? The primary key is what I want to pass to the next page.

I came up with a rather cumbersome way for another application which involves querying the database table, sorting the records by time created, and selecting the most recent. In this application, I don't neccesarily care about the creation date, but I can include one if needed.

I keep thinking there has GOT to be a better way to do this! Calista :-X
Jedi Knight,
Champion of the Force
 
Duh! :~/ It would have to be that simple. And here I was making it a lot harder than it had to be. Thanks! Calista :-X
Jedi Knight,
Champion of the Force
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top