See the <selectKey> element in the user documentation available from
the website.
Cheers,
Clinton
On Mon, 13 Dec 2004 15:53:28 -0200, omarcioRibeiro()
<[EMAIL PROTECTED]> wrote:
> Hello personal...
> I am beginning to use the iBATiS and I am with a problem.
> how does to recover him/it number of the sequence generated by the
> postgreSQL in an insert?
>
> In the psql I use like this.
>
> insert into customer (name)values('name_customer');
> select currval ('sequence_name_sequence')
>
> my structures of the table:
> Table customer (
> code serial, -- is as sequence
> name varchar(150));
>
> how to do in the ibatis?
> Thank you personal
>