I am a new beginner in JOOQ
and I have a curious question.
I need to generate insert statements and dump the records to a file in the below format:
INSERT INTO table_name (column_list)
VALUES
(value_list_1),
(value_list_2),
...
(value_list_n);
And another option is also to delete statements in this format::
DELETE FROM table WHERE (col1,col2) IN ((1,2),(3,4),(5,6))
I am just trying to find out if this works in JOOQ
and how to do it.
A quick hint or link which could lead me to a solution would be highly appreciated.
I understand JOOQ
has CSV/ XML
exportability. My preference would be XML however, the import is NOT yet implemented.
String csv = create.selectFrom(BOOK).fetch().formatCSV(';');
or
String csv = create.selectFrom(BOOK).fetch().formatCSV(';', "{null}");
Thanks for the responses in advance.