Hi,

I need help in the below to code to generate right select from values with 
the values I am passing instead of parameters.

Below is the sample code i am trying to execute.

DSLContext dsl;
Settings settings = new Settings()
 .withRenderNameStyle(RenderNameStyle.AS_IS).withRenderFormatted(true);
dsl = DSL.using(SQLDialect.DEFAULT, settings);
String sql = 
dsl.select().from(DSL.values(DSL.row(43,1234,"value1"),DSL.row(43,1235,"value2"))).getSQL();
System.out.println(sql);


Output is generating as below. 


select 
  v.c1, 
  v.c2, 
  v.c3
from (values
  (?, ?, ?),
  (?, ?, ?)
) v(c1, c2, c3)


So I need help in fixing the above to generate as below because my database 
doesn't support column aliases

select 
    column1,
    column2,
    column3
from values (43,1234,'value1'),(43,1235,'value2')

Is there any way I can achieve the above format?

Regards,
Mohan


-- 
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