ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barnett, Brian W." <brian.barn...@pearson.com>
Subject Getting auto-generated keys in mySql
Date Wed, 17 Aug 2005 20:43:05 GMT
We've been using SQL Server and are moving to mySQL. Can somebody tell me
how to do this for mySql:

<selectKey resultClass="int" keyProperty="id">
	SELECT @@IDENTITY AS id
</selectKey>

TIA,
Brian Barnett

**************************************************************************** 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 
****************************************************************************

Mime
View raw message