![](https://secure.gravatar.com/avatar/4793806f3b6ea0a361d6cddd42d0d989.jpg?s=120&d=mm&r=g)
26 Jun
2012
26 Jun
'12
2:17 a.m.
On 25-06-2012 15:09:44 -0400, Tomas Mikula wrote:
Hi,
how can I get the ID (value of an AUTO_INCREMENT column) of the last inserted row, from within an SQL script? I am able to get it through the Python API, so I suppose there is a way to get it inside an SQL script, too.
IF you script is interfacing with mclient, it has to parse it's output (use -i) which reports "last generated id".
Fabian