i need to insert data into multiple tables from a single <insert> in an sqlMap. is there any way to do that?
the closest i got is something like
<insert id="insertData" parameterClass="Application.database.Data">
INSERT INTO
T1 (id,c1,c2)
VALUES (nextval('t1_id_seq'),#c1#,#c2#);
INSERT INTO
T2(id,t1id,c3,c4)
VALUES (nextval('cust_account_id_seq'),__what_here?__,#c3#,#c4#)
</insert>
but i don't know how to put the new generated key from t1 into t2 (where __what_here?__ is)
seleckKey was an option but couldn't make it work as expected

thank you very much