摘要: 追加:row_number, rank, dese_rank, ntile1. row_number: 为查询出来的每一行记录生成一个序号。SELECT row_number() OVER(ORDER BY field) AS row_nFROM tablename;分页查询:with t_towtableas (select row_number over(order by field1) as row_number from tb)select * from t_rowtable where row_number > 1 and row_number > 4 order by 阅读全文
posted @ 2010-05-04 19:20 我是小菜鸟 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 将从WebService得到数据并将xml转化成Dataset显示出来XmlDataDocument xd = new XmlDataDocument();DataSet ds = new DataSet();StringBuilder xmlStr = new StringBuilder(ServiceA.GetInfo(StrSearch).OuterXml);xd.loadXml(Xml.Str.toString());ds.readXml(new XmlNodeReader(xd));DataGrid1.DataSource = ds.Tables['list'].De 阅读全文
posted @ 2010-05-04 19:00 我是小菜鸟 阅读(477) 评论(0) 推荐(0) 编辑