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)
Combine with other selects 
 | 
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 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. | 
List<Field<?>> | 
getSelect()
All fields selected in this query 
 | 
Select<R> | 
intersect(Select<? extends R> select)
Combine with other selects 
 | 
Select<R> | 
union(Select<? extends R> select)
Combine with other selects 
 | 
Select<R> | 
unionAll(Select<? extends R> select)
Combine with other selects 
 | 
bind, bind, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetchAny, fetchAny, fetchAny, fetchAny, fetchAny, fetchAny, fetchAny, fetchAny, fetchAny, fetchAny, fetchAnyArray, fetchAnyInto, fetchAnyInto, fetchAnyMap, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArrays, 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, fetchMaps, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOneArray, fetchOneInto, fetchOneInto, fetchOneMap, fetchResultSet, fetchSet, fetchSet, fetchSet, fetchSet, fetchSet, fetchSet, fetchSet, fetchSet, fetchSet, fetchSize, getRecordType, getResult, intern, intern, intern, iterator, keepStatement, maxRows, queryTimeout, resultSetConcurrency, resultSetHoldability, resultSetTypecancel, close, execute, getBindValues, getParam, getParams, getSQL, getSQL, getSQL, isExecutableattach, detachforEach, spliterator@Support(value={ASE,CUBRID,DB2,DERBY,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,SYBASE}) Select<R> except(Select<? extends R> select)
@Support(value={ASE,CUBRID,DB2,DERBY,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,SYBASE}) Select<R> intersect(Select<? extends R> select)
@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:  This is particularly useful for those databases that do not
 support the 
 -- 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 © 2015. All Rights Reserved.