JOOQ query for MySQL query

19 views
Skip to first unread message

Odata Dev

unread,
Mar 24, 2020, 6:08:23 AM3/24/20
to jOOQ User Group
Hi,

how to convert the following query to JOOQ ???

delete a from region a inner join region b
on a.role_id = b.role_id and a.region_id = b.region_id
where a.user_id = from_user_id and b.user_id = to_user_id;

Thanks

Lukas Eder

unread,
Mar 24, 2020, 6:29:43 AM3/24/20
to jOOQ User Group
Hello,

There are currently limitations around this area, as can be seen in the relevant issue here:

The workaround is to use semi joins (i.e. IN or EXISTS predicates) instead.

I hope this helps,
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 jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/38597b8f-7405-481f-8743-c7e964ff0c52%40googlegroups.com.

Odata Dev

unread,
Mar 25, 2020, 5:38:45 AM3/25/20
to jOOQ User Group

Thanks, Lukas..

It answers my question..


On Tuesday, March 24, 2020 at 3:59:43 PM UTC+5:30, Lukas Eder wrote:
Hello,

There are currently limitations around this area, as can be seen in the relevant issue here:

The workaround is to use semi joins (i.e. IN or EXISTS predicates) instead.

I hope this helps,
Lukas 

On Tue, Mar 24, 2020 at 11:08 AM Odata Dev <odatad...@gmail.com> wrote:
Hi,

how to convert the following query to JOOQ ???

delete a from region a inner join region b
on a.role_id = b.role_id and a.region_id = b.region_id
where a.user_id = from_user_id and b.user_id = to_user_id;

Thanks

--
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 jooq...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages