I using JOOQ to build sql ,the code can be see below:

DSLContext create= DSL.using(SQLDialect.POSTGRES_9_5);
List<Field<?>> columns=new ArrayList<>();
List<Field<?>> values=new ArrayList<>();
columns.add(DSL.field("id"));
columns.add(DSL.field("name"));
columns.add(DSL.field("age"));
values.add(DSL.field("003"));
values.add(DSL.field("bob"));
values.add(DSL.field("24"));
String sql=create.insertInto(DSL.table("task"
)).columns(columns).values(values).getSQL(); 

I get the sql is: insert into task set(id,name,age) values(003,bob,24);

But what i want is :  insert into task set(id,name,age) 
values('003','bob','24');

Where the problem is ? thanks for your help!

-- 
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/d/optout.

Reply via email to