LATERAL is Your Friend to Create Local Column Variables in SQL
Java, SQL and jOOQ.by lukaseder·4 Nov 2022
The standard SQL WITH clause has been tremendously helpful in structuring SQL queries. Instead of nesting everything in unreadable derived tables like this: SELECT actor_id, name, COUNT(*) FROM (...
Calling Procedures with Default Parameters using JDBC or jOOQ
Java, SQL and jOOQ.by lukaseder·21 Oct 2022
Using jOOQ’s code generator to call stored procedures is a popular reason to use jOOQ. For example, when you have a procedure like the following Oracle PL/SQL procedure: CREATE OR REPLACE PROCEDURE...
Using jOOQ’s Implicit Join From Within the JOIN .. ON Clause
Java, SQL and jOOQ.by lukaseder·13 Sept 2022
Starting with jOOQ 3.11, type safe implicit JOIN have been made available, and they’ve been enhanced to be supported also in DML statements in jOOQ 3.17.
A Brief Overview over the Most Common jOOQ Types
Java, SQL and jOOQ.by lukaseder·6 Sept 2022
For new users working with jOOQ for the first time, the number of types in the jOOQ API can be overwhelming.
The Second Best Way to Fetch a Spring Data JPA DTO Projection
Java, SQL and jOOQ.by lukaseder·30 Aug 2022
I’ve just stumbled upon this great post by Vlad Mihalcea, titled The Best Way to Fetch a Spring Data JPA DTO Projection. It got some nice traction on reddit, too.
Cannot resolve symbol ‘VERSION_3_17’ in jOOQ generated code
Java, SQL and jOOQ.by lukaseder·30 Aug 2022
Starting with jOOQ 3.16 and #12601, there may be a compilation error with a message like this in your jOOQ generated code: [ERROR] …/DefaultCatalog.java:[53,73] cannot find symbol [ERROR] symbol...
jOOQ 3.17 Supports Implicit Join also in DML
Java, SQL and jOOQ.by lukaseder·25 Aug 2022
Since jOOQ 3.11, implicit joins have been supported. An implicit join is a JOIN (mostly a LEFT JOIN) that is generated implicitly because of the presence of a path expression.
A Condition is a Field
Java, SQL and jOOQ.by lukaseder·24 Aug 2022
Starting with jOOQ 3.17, the Condition type extends the Field<Boolean> type. Because, that’s what the SQL standard thinks it is, in sorts: <boolean value expression> ::= <predicate> The exact...
The Many Ways to Return Data From SQL DML
Java, SQL and jOOQ.by lukaseder·23 Aug 2022
Probably the hardest thing to standardise in SQL is RETURNING data from DML statements. In this article, we’ll look at various ways of doing that with jOOQ, in many of jOOQ’s supported dialects...
How to Integration Test Stored Procedures with jOOQ
Java, SQL and jOOQ.by lukaseder·22 Aug 2022
When you write stored procedures and functions in your database, you want to ensure their correctness, just like with your Java code. In Java, this is done with unit tests, typically with JUnit.
Using H2 as a Test Database Product with jOOQ
Java, SQL and jOOQ.by lukaseder·19 Aug 2022
The H2 database is an immensely popular in-memory database product mostly used by Java developers for testing.
The Best Way to Call Stored Procedures from Java: With jOOQ
Java, SQL and jOOQ.by lukaseder·28 Jul 2022
jOOQ is mainly known for its powerful type safe, embedded, dynamic SQL capabilities that are made available through code generation.
3.17.0 Release with Computed Columns, Audit Columns, Pattern Matching, Reactive Transactions and Kotlin Coroutine Support
Java, SQL and jOOQ.by lukaseder·22 Jun 2022
This release contiues the work from previous releases around more sophisticated SQL transformation capabilities, including: - Client side computed columns for both read and write operations - Audit...
How to Filter a SQL Nested Collection by a Value
Java, SQL and jOOQ.by lukaseder·10 Jun 2022
I stumbled upon a very interesting question on Stack Overflow about how to use jOOQ’s MULTISET operator to nest a collection, and then filter the result by whether that nested collection contains a...
The Performance of Various To-Many Nesting Algorithms
Java, SQL and jOOQ.by lukaseder·9 Jun 2022
It’s been a while since jOOQ 3.15 has been released with its revolutionary standard SQL MULTISET emulation feature.
Changing SELECT .. FROM Into FROM .. SELECT Does Not “Fix” SQL
Java, SQL and jOOQ.by lukaseder·31 May 2022
Every now and then, I see folks lament the SQL syntax’s peculiar disconnect between - the lexical order of operations (SELECT .. FROM ) - the logical order of operations (FROM ..
The Many Different Ways to Fetch Data in jOOQ
Java, SQL and jOOQ.by lukaseder·19 May 2022
The jOOQ API is all about convenience, and as such, an important operation (the most important one?) like fetch() must come with convenience, too.
Setting the JDBC Statement.setFetchSize() to 1 for Single Row Queries
Java, SQL and jOOQ.by lukaseder·11 May 2022
An interesting hint by Vladimir Sitnikov has made me think about a new benchmark for jOOQ: The benchmark should check whether single row queries should have a JDBC Statement.setFetchSize(1) call...
Your filters hide everything on this page. Adjust them in preferences.