
Wt 3.3.2文档翻译 : Wt::Dbo::Query< Result, BindStrategy > 类模板参考 ,Wt::Dbo::Query< Result, BindStrategy > Class Template Reference
template<class Result, typename BindStrategy>
|
Query <Result, BindStrategy>& Wt::Dbo::Query < Result, BindStrategy >::limit |
( |
int |
count ) |
设置一个结果集条目限制。
设置 一个结果集条目限制。 所产生的效果是, 下一次调用 resultList() 会返回最多 count 条结果。 可使用 -1 来表示不设限制。
这个函数为一个SQL 查询提供了其中的( 非标准 ) limit 部分子句。
参考
注意
使用 DirectBinding 绑定策略 时,不可使用此方法。
template<class Result, typename BindStrategy>
|
Query <Result, BindStrategy>& Wt::Dbo::Query < Result, BindStrategy >::offset |
( |
int |
count ) |
设置一个结果集偏移值。
设置 一个结果集偏移值。 所产生的效果是,下一次调用 resultList() 会跳过offset 所指定的数目的结果。 可使用 -1 来表示不设置偏移值。
这个函数为一个SQL 查询提供了其中的( 非标准 ) offset 部分子句。
参考
注意
使用 DirectBinding 绑定策略 时,不可使用此方法。
HxLauncher: Launch Android applications by voice commands