ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "omarcioRibeiro()" <omarcioribe...@gmail.com>
Subject Sequence postgresql
Date Mon, 13 Dec 2004 17:53:28 GMT
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

View raw message