List:MySQL++« Previous MessageNext Message »
From:Martin Dommermuth Date:September 3 2007 9:48am
Subject:RE: Get ID when inserting with Template Queries
View as plain text  
Hi Alex, 

> After inserting the new row in a table with an AUTO_INCREMENT field,
> call mysqlpp::Connection::insert_id()
> to get the value of the AUTO_INCREMENT in your new row.

thanks a lot! Exactly what I needed.

Martin


Thread
Get ID when inserting with Template QueriesMartin Dommermuth3 Sep
  • Re: Get ID when inserting with Template QueriesAlex Burton3 Sep
    • RE: Get ID when inserting with Template QueriesMartin Dommermuth3 Sep