How to utilize Postgres' INSERT... RETURNING clause?

19 views
Skip to first unread message

ben.j....@gmail.com

unread,
Apr 21, 2017, 5:51:05 PM4/21/17
to Querydsl
Trying to find the equivalent of this:

INSERT INTO <table> (<column2>, <column3>)
VALUES (<val2>, <val3>)
RETURNING <column1>

where column1 is an auto-incremented primary key.

Is this implemented in querydsl?

Marco Willemart

unread,
May 19, 2017, 8:11:48 AM5/19/17
to Querydsl
I asked the same question there : https://groups.google.com/forum/#!topic/querydsl/jSMs2Er2e0U

In addition it seems already discussed there : https://github.com/querydsl/querydsl/issues/971

Indeed it would be great to have this feature :-)
Reply all
Reply to author
Forward
0 new messages