| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1012 人关注过本帖
标题:分页控件加了查询条件应该怎么用
取消只看楼主 加入收藏
夜龙魂
Rank: 2
等 级:论坛游民
帖 子:130
专家分:65
注 册:2009-9-24
结帖率:57.14%
收藏
 问题点数:0 回复次数:0 
分页控件加了查询条件应该怎么用
with temptable as
(
    select row_number() over(order by cid ) rowid,* from customertable

)
    select * from temptable where rowid between 1(@pageStarIndex) and 1+2-1(@pageStarIndex+@pageSize-1)

这是没有查询条件的用法

但是我现在想加查询条件应该怎么用请大家帮忙我是这样写的不行
with temptable as
(
    select row_number() over(order by cid ) rowid,* from customertable

)
    select * from temptable where rowid between 1(@pageStarIndex) and 1+2-1(@pageStarIndex+@pageSize-1) and (clientitem='' or sinfoname='余露' or clientco='' or times='') order by times desc
搜索更多相关主题的帖子: 查询 条件 控件 
2009-11-16 10:10
快速回复:分页控件加了查询条件应该怎么用
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.065421 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved