Package com.alibaba.druid.sql.dialect.postgresql.ast.stmt.PGSelectQueryBlock

Examples of com.alibaba.druid.sql.dialect.postgresql.ast.stmt.PGSelectQueryBlock.PGLimit


        if (queryBlock.getLimit() != null)
        {
        throw new IllegalArgumentException("limit already exists.");
        }

            PGLimit limit = new PGLimit();
            if (offset > 0)
            {
                limit.setOffset(new SQLNumberExpr(offset));
            }
            limit.setRowCount(new SQLNumberExpr(count));
            queryBlock.setLimit(limit);

            return SQLUtils.toSQLString(queryBlock, dbType);
        }
View Full Code Here

TOP

Related Classes of com.alibaba.druid.sql.dialect.postgresql.ast.stmt.PGSelectQueryBlock.PGLimit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.