select top 10
a.h_id,
a.h_name,
a.h_writer,
pub_name = dbo.uf_getPubName(a.pub_id),
a.h_output_price,
a.h_smallimage,
a.h_publish_date,
discount_price =CONVERT(decimal(10, 2),(db_product_discount.h_output_discount_ls*a.h_output_price))
from (select *
from db_product b
where b.h_id not in(
select top 20
db_product.h_id
from db_product,
db_publishs,
db_product_discount
where db_product.pub_id=db_publishs.pub_id
AND db_product.h_id=db_product_discount.h_id
AND db_product.h_type='0707')) a,db_product_discount
where a.h_id=db_product_discount.h_id不能分页显示,我点每一页显示的数据怎么一样呢
a.h_id,
a.h_name,
a.h_writer,
pub_name = dbo.uf_getPubName(a.pub_id),
a.h_output_price,
a.h_smallimage,
a.h_publish_date,
discount_price =CONVERT(decimal(10, 2),(db_product_discount.h_output_discount_ls*a.h_output_price))
from (select *
from db_product b
where b.h_id not in(
select top 20
db_product.h_id
from db_product,
db_publishs,
db_product_discount
where db_product.pub_id=db_publishs.pub_id
AND db_product.h_id=db_product_discount.h_id
AND db_product.h_type='0707')) a,db_product_discount
where a.h_id=db_product_discount.h_id不能分页显示,我点每一页显示的数据怎么一样呢
解决方案 »
- 脑子里一直有疑问:网络公司是如何做网站的?靠一行行写代码估计会赔钱的,他们做的挺快,功能也可以,怎么做的?
- 求 Astreeview 使用方法
- 将前台文字插入数据库时,如何将繁体字装换为简体字
- 一个老生长谈的问题-获取confirm的返回值
- datagrid+repeater 报错!!!
- 数据库中的datetime字段,sql语句时怎么才能匹配?where worktime="+System.datetime.now.toshortDatestring();不行
- 这是一个排序的后台代码,为什么我点击标题排序只能排一次,再点击还是原来的效果??
- 怎么让alert中显示的内容换行??急,谢谢
- 今天没有办法解决了吗?
- 有关控件实时更新的小问题
- 没有安装声卡的机器一旦有程序错误,就出现很大的"嘟嘟"声,真烦人,怎么样去掉或者变小?
- ASP.NET中,* 如何用验证控件进行验证。
你查出来的都是最前10条数据,页面上自然显示不出来的。
http://www.cnblogs.com/kasafuma/archive/2005/08/04/207481.html
select top 20....
进行筛选的,也就是先去掉前20条数据,然后再取前10条。
要不帮我改改吧,我实在不知道怎么改了,谢谢
http://dwp008.cnblogs.com/archive/2005/09/16/238571.html