select @allid=count(*) from jinan where [email protected] and (code like @code+'%') select @[email protected]
declare cur_fastread cursor scroll for select code from jinan where [email protected] and (code like @code+'%') order by code
open cur_fastread select @beginid=(@pagenow-1)*@pagesize+1 select @[email protected][email protected]
fetch absolute @beginid from cur_fastread into @pagebegin
if @endid>@allid fetch last from cur_fastread into @pageend else fetch absolute @endid from cur_fastread into @pageend
set nocount off
select code,cost,status from jinan join xuanhaofei on jinan.category=xuanhaofei.category and jinan.cityid=xuanhaofei.cityid where code between @pagebegin and @pageend order by code
using system; using system.collections; using system.componentmodel; using system.data; using system.data.sqlclient; using system.configuration; using system.text; using system.diagnostics; using system.web; using system.web.services;
namespace webservice1 { public class service2 : system.web.services.webservice { sqlconnection con;
public service2() { //codegen: this call is required by the asp.net web services designer initializecomponent(); }
[webmethod] //[webmethod]属性声明此方法作为web服务可以被远程使用者调用 public string table(int pagenow,int cityid) { int recordcount;//总号码数 int page=0;//总页数 int j=0;