R - The record type being returned by this querypublic interface Select<R extends Record> extends ResultQuery<R>, TableLike<R>, FieldLike
| Modifier and Type | Method and Description | 
|---|---|
| Select<R> | except(Select<? extends R> select)Apply the  EXCEPT(orMINUS) set operation. | 
| Select<R> | exceptAll(Select<? extends R> select)Apply the  EXCEPT ALLset operation. | 
| int | fetchCount()Deprecated. 
 - 3.5.0 - [#3356] - This method is being removed as it is
             confusingly different from all the other types of
              ResultQuery.fetch()methods, in that it modifies the originalSelectstatement by wrapping it. In particular, this
             method can be easily confused withResultQuery.fetch(Field), or
             more concretelyfetch(count()), which has an
             entirely different semantics. UseDSLContext.fetchCount(Select)instead. | 
| List<Field<?>> | getSelect()All fields selected in this query | 
| Select<R> | intersect(Select<? extends R> select)Apply the  INTERSECTset operation. | 
| Select<R> | intersectAll(Select<? extends R> select)Apply the  INTERSECT ALLset operation. | 
| Select<R> | union(Select<? extends R> select)Apply the  UNIONset operation. | 
| Select<R> | unionAll(Select<? extends R> select)Apply the  UNION ALLset operation. | 
bind, bind, collect, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetchAny, fetchAny, fetchAny, fetchAny, fetchAny, fetchAny, fetchAny, fetchAny, fetchAny, fetchAny, fetchAny, fetchAny, fetchAny, fetchAny, fetchAnyArray, fetchAnyInto, fetchAnyInto, fetchAnyMap, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArrays, fetchAsync, fetchAsync, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchGroups, fetchInto, fetchInto, fetchInto, fetchLater, fetchLater, fetchLazy, fetchLazy, fetchMany, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMap, fetchMaps, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOneArray, fetchOneInto, fetchOneInto, fetchOneMap, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptionalArray, fetchOptionalInto, fetchOptionalInto, fetchOptionalMap, fetchResultSet, fetchSet, fetchSet, fetchSet, fetchSet, fetchSet, fetchSet, fetchSet, fetchSet, fetchSet, fetchSet, fetchSet, fetchSet, fetchSet, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingleArray, fetchSingleInto, fetchSingleInto, fetchSingleMap, fetchSize, fetchStream, fetchStreamInto, fetchStreamInto, forEach, getRecordType, getResult, intern, intern, intern, intern, iterator, keepStatement, maxRows, queryTimeout, resultSetConcurrency, resultSetHoldability, resultSetType, spliterator, streamcancel, close, execute, executeAsync, executeAsync, getBindValues, getParam, getParams, getSQL, getSQL, getSQL, isExecutableattach, configuration, detach@Support Select<R> union(Select<? extends R> select)
UNION set operation.IllegalArgumentException - If the argument select has the same
             identity as this select. The jOOQ 3.x API is mutable, which
             means that calls to the DSL API mutate this instance. Adding
             this instance as an set operation argument would lead to a
             StackOverflowError when generating the SQL.@Support Select<R> unionAll(Select<? extends R> select)
UNION ALL set operation.IllegalArgumentException - If the argument select has the same
             identity as this select. The jOOQ 3.x API is mutable, which
             means that calls to the DSL API mutate this instance. Adding
             this instance as an set operation argument would lead to a
             StackOverflowError when generating the SQL.@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Select<R> except(Select<? extends R> select)
EXCEPT (or MINUS) set operation.IllegalArgumentException - If the argument select has the same
             identity as this select. The jOOQ 3.x API is mutable, which
             means that calls to the DSL API mutate this instance. Adding
             this instance as an set operation argument would lead to a
             StackOverflowError when generating the SQL.@Support(value={AURORA_POSTGRES,CUBRID,DB2,DERBY,HSQLDB,POSTGRES,TERADATA}) Select<R> exceptAll(Select<? extends R> select)
EXCEPT ALL set operation.IllegalArgumentException - If the argument select has the same
             identity as this select. The jOOQ 3.x API is mutable, which
             means that calls to the DSL API mutate this instance. Adding
             this instance as an set operation argument would lead to a
             StackOverflowError when generating the SQL.@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Select<R> intersect(Select<? extends R> select)
INTERSECT set operation.IllegalArgumentException - If the argument select has the same
             identity as this select. The jOOQ 3.x API is mutable, which
             means that calls to the DSL API mutate this instance. Adding
             this instance as an set operation argument would lead to a
             StackOverflowError when generating the SQL.@Support(value={AURORA_POSTGRES,CUBRID,DB2,DERBY,HSQLDB,POSTGRES,TERADATA}) Select<R> intersectAll(Select<? extends R> select)
INTERSECT ALL set operation.IllegalArgumentException - If the argument select has the same
             identity as this select. The jOOQ 3.x API is mutable, which
             means that calls to the DSL API mutate this instance. Adding
             this instance as an set operation argument would lead to a
             StackOverflowError when generating the SQL.@Deprecated int fetchCount() throws DataAccessException
ResultQuery.fetch() methods, in that it modifies the original
             Select statement by wrapping it. In particular, this
             method can be easily confused with ResultQuery.fetch(Field), or
             more concretely fetch(count()), which has an
             entirely different semantics. Use
             DSLContext.fetchCount(Select) instead.COUNT(*) value.
 
 This wraps a pre-existing SELECT query in another one to
 calculate the COUNT(*) value, without modifying the original
 SELECT. An example: 
 -- Original query:
 SELECT id, title FROM book WHERE title LIKE '%a%'
 -- Wrapped query:
 SELECT count(*) FROM (
   SELECT id, title FROM book WHERE title LIKE '%a%'
 )
 
COUNT(*) OVER() window function to calculate
 total results in paged queries.
COUNT(*) resultDataAccessException - if something went wrong executing the queryCopyright © 2019. All rights reserved.