ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: Sequence postgresql
Date Wed, 15 Dec 2004 15:02:04 GMT
See the <selectKey> element in the user documentation available from
the website.

Cheers,
Clinton


On Mon, 13 Dec 2004 15:53:28 -0200, omarcioRibeiro()
<omarcioribeiro@gmail.com> 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
>

Mime
View raw message