Available in versions: Dev (3.19) | Latest (3.18) | 3.17 | 3.16 | 3.15 | 3.14 | 3.13 | 3.12 | 3.11 | 3.10 | 3.9
SQL Statements (DML)
Applies to ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
jOOQ currently supports 5 types of SQL statements. All of these statements are constructed from a DSLContext instance with an optional JDBC Connection or DataSource. If supplied with a Connection or DataSource, they can be executed. Depending on the query type, executed queries can return results.
Table of contents
- 4.3.1.
- jOOQ's DSL and model API
- 4.3.2.
- The WITH clause
- 4.3.3.
- The WITH RECURSIVE clause
- 4.3.4.
- The SELECT statement
- 4.3.4.1.
- SELECT clause
- 4.3.4.1.1.
- Projection type safety
- 4.3.4.1.2.
- SelectField
- 4.3.4.1.3.
- SELECT DISTINCT
- 4.3.4.1.4.
- Convenience methods
- 4.3.4.2.
- FROM clause
- 4.3.4.3.
- JOIN operator
- 4.3.4.4.
- WHERE clause
- 4.3.4.5.
- CONNECT BY clause
- 4.3.4.6.
- GROUP BY clause
- 4.3.4.6.1.
- GROUP BY columns
- 4.3.4.6.2.
- GROUP BY ROLLUP
- 4.3.4.6.3.
- GROUP BY CUBE
- 4.3.4.6.4.
- GROUP BY GROUPING SETS
- 4.3.4.6.5.
- GROUP BY empty grouping set
- 4.3.4.7.
- HAVING clause
- 4.3.4.8.
- WINDOW clause
- 4.3.4.9.
- ORDER BY clause
- 4.3.4.10.
- LIMIT .. OFFSET clause
- 4.3.4.11.
- SEEK clause
- 4.3.4.12.
- FOR UPDATE clause
- 4.3.4.13.
- Set operations
- 4.3.4.13.1.
- Type safety
- 4.3.4.13.2.
- Projection rowtype
- 4.3.4.13.3.
- Differences to standard SQL
- 4.3.4.13.4.
- UNION
- 4.3.4.13.5.
- INTERSECT
- 4.3.4.13.6.
- EXCEPT
- 4.3.4.14.
- Lexical and logical SELECT clause order
- 4.3.5.
- The INSERT statement
- 4.3.5.1.
- INSERT .. VALUES
- 4.3.5.2.
- INSERT .. DEFAULT VALUES
- 4.3.5.3.
- INSERT .. SET
- 4.3.5.4.
- INSERT .. SELECT
- 4.3.5.5.
- INSERT .. ON DUPLICATE KEY UPDATE
- 4.3.5.6.
- INSERT .. ON DUPLICATE KEY IGNORE
- 4.3.5.7.
- INSERT .. ON CONFLICT
- 4.3.5.8.
- INSERT .. RETURNING
- 4.3.6.
- The UPDATE statement
- 4.3.6.1.
- UPDATE .. SET
- 4.3.6.2.
- UPDATE .. SET ROWS
- 4.3.6.3.
- UPDATE .. FROM
- 4.3.6.4.
- UPDATE .. WHERE
- 4.3.6.5.
- UPDATE .. RETURNING
- 4.3.7.
- The DELETE statement
- 4.3.7.1.
- DELETE .. WHERE
- 4.3.7.2.
- DELETE .. RETURNING
- 4.3.8.
- The MERGE statement
previous : next |
References to this page
Feedback
Do you have any feedback about this page? We'd love to hear it!