public class SqlServerDialect extends net.sf.jkniv.sqlegance.dialect.AnsiDialect
Limit clause:
select TOP 2 name from author
| Constructor and Description |
|---|
SqlServerDialect() |
| Modifier and Type | Method and Description |
|---|---|
String |
buildQueryPaging(String sqlText,
int offset,
int max) |
String |
getSqlPatternPaging()
LIMIT clause for SqlServer, where TOP is a parameter from
String.format
|
addFeature, buildQueryCount, buildQueryPaging, countOccurrencesOf, getAccessId, getAccessRevision, getMaxOfParameters, getSqlPatternCount, name, setMaxOfParameters, sqlEndsWithOrderBy, sqlEndWithForUpdate, sqlStartWithSelect, sqlStartWithSelectOrDistinct, supportsFeature, supportsParmMarkpublic SqlServerDialect()
public String getSqlPatternPaging()
getSqlPatternPaging in interface net.sf.jkniv.sqlegance.dialect.SqlDialectgetSqlPatternPaging in class net.sf.jkniv.sqlegance.dialect.AnsiDialect
WITH query AS (
SELECT inner_query.*
, ROW_NUMBER() OVER (ORDER BY CURRENT_TIMESTAMP) as _jkniv_rownum_
FROM ( select ID, SERVICO from ine.configuracao ) inner_query
)
SELECT * FROM query WHERE _jkniv_rownum_ >= 3 AND _jkniv_rownum_ < 5 + 3
public String buildQueryPaging(String sqlText, int offset, int max)
buildQueryPaging in interface net.sf.jkniv.sqlegance.dialect.SqlDialectbuildQueryPaging in class net.sf.jkniv.sqlegance.dialect.AnsiDialectCopyright © 2012–2020 jkniv, copyleft code. All rights reserved.