//普通查询
select top 10 HotelId, HotelName, Tel, LinkMan, EBooking from hotel where hotelid in (select hotelid from hotelorder where orderstatus=22 and orderid in (select orderid from hotelorderdetail where roomavailid =1 and status=0))
//分页查询
select top 10 HotelId, HotelName, Tel, LinkMan, EBooking from hotel where hotelid not in (select top 0 hotelid from hotel)
//求如何合成普通查询和分页查询,即普通查询且可以分页
select top 10 HotelId, HotelName, Tel, LinkMan, EBooking from hotel where hotelid in (select hotelid from hotelorder where orderstatus=22 and orderid in (select orderid from hotelorderdetail where roomavailid =1 and status=0))
//分页查询
select top 10 HotelId, HotelName, Tel, LinkMan, EBooking from hotel where hotelid not in (select top 0 hotelid from hotel)
//求如何合成普通查询和分页查询,即普通查询且可以分页
解决方案 »
- 是否有可能将WinForm的DataGrid的滚动条都替换掉?
- 如何在treeview控件下显示图标
- 使用tcplistener 时,线程相关的问题
- 大家帮我看一下,这是什么编码呢。。
- 每隔1分钟执行一个程序
- 在vs.2005中打包时怎样写注册表,让程序下次开机时自动运行,还有安装完成后自动启动?--------很急--在线等..............
- 与EXCHANGE有关 會的絕對是高人
- ajax上传到web空间后出问题了!!!
- 谁用过VS2005中的htmlinputhidden控件,为何不能在JS和服务器程序间传值,在名称之前系统自动都加了一段字符串,郁闷
- C++中分发消息如何使用C#实现
- 将一个字符串格式化为4位的字符串,高位用0填充。怎么写格式化字符串?
- 问:listbox关于帮定的问题
http://blog.csdn.net/zjcxc/category/125592.aspx