IDatabaseApi.GetPageSqlString method
获取当前数据库类型的能够分页的SQL语句。
public string GetPageSqlString(string tableName, string columnNames, string whereSqlString,
string orderSqlString, int offset, int limit)
parameter | description |
---|---|
tableName | 数据库表名称。 |
columnNames | 需要返回的字段名称,多个字段用英文逗号分隔。 |
whereSqlString | WHERE SQL语句。 |
orderSqlString | ORDER SQL语句。 |
offset | 返回结果的偏移量。 offset 表示在开始返回行之前跳过这么多行,如果从第一行开始返回,offset 是 0,以此类推。 |
limit | 返回结果的数量。 如果不限制,将 limit 值设置为 0。 如果给定大于0的值,返回的结果将不会超过这个数目。 |
Return Value
完整的翻页SQL语句。
See Also
- interface IDatabaseApi
- namespace SiteServer.Plugin