That should get me going nicely.... thanks for the help. On Thursday, 15 August 2013 12:07:24 UTC+1, Lukas Eder wrote: > > > 2013/8/15 <[email protected] <javascript:>> > >> Thanks for your help Lukas, I have a couple more questions: >> >> 1. It's not 100% clear where "create", "fieldByName" and "tableByName" >> etc are coming from on the >> jooq-as-a-standalone-sql-builder<http://www.jooq.org/doc/3.1/manual/getting-started/use-cases/jooq-as-a-standalone-sql-builder/> >> page. >> I think I've figured it out but it might be worth adding: >> import static DSL.*; >> and >> DSLContext create = DSL.using(configuration); >> > > This is explained in a section called "how to read this manual", where > common naming conventions for the manual are explained. > http://www.jooq.org/doc/3.1/manual/getting-started/the-manual > > 2. Do you have an example how to insert a record and retrieve the >> generated auto-increment value? >> I'm guessing it's something like: >> create.insertInto(table, field1, field2)..values(value1, >> value2).execute() >> but I'm not sure how to get the auto-increment back. >> > > See the manual's section about the INSERT statement: > > http://www.jooq.org/doc/3.1/manual/sql-building/sql-statements/insert-statement/#N10F3F > > Cheers > Lukas >
-- You received this message because you are subscribed to the Google Groups "jOOQ User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
