Examples of PGLimit


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
Copyright © 2018 www.massapi.com. 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.