摘要:
C# 五种读取XML的方法 阅读全文
摘要:
简介
这篇文章是关于SQL Server中大数据量的分页算法的实现,都是基于存储过程的分页
PagingTest Solution (C#) - 55.8 Kb
Paging_Procedures SQL script - 2.48 Kb
Paging_LargeTable SQL script - 0.6 Kb
介绍
在 Web应用程序中,对一个大数据库结果集进行分页已经是一个家... 阅读全文
摘要:
Merge Into 语句代替Insert/Update在Oracle中的应用实战 动机: 想在Oracle中用一条SQL语句直接进行Insert/Update的操作。 说明: 在进行SQL语句编写时,我们经常会遇到大量的同时进行Insert/Update的语句,也就是说当存在记录时,就更新(Update),不存在数据时,就插入(I... 阅读全文
摘要:
Sql Server 跨库查询 阅读全文
摘要:
1,新建数据文件后无法删除,提示文件不为空。dbcc shrinkfile(MYFile1,emptyfile) alter database mydatabase remove file myfile1 阅读全文
摘要:
1.根据ROWID来分select * from t_xiaoxi where rowid in(select rid from (select rownum rn,rid from(select rowid rid,cid from t_xiaoxi order by cid desc) where rownum9980) order by cid desc;执行时间0.03秒2.按分析函... 阅读全文
摘要:
非强类型(UnTyped)Dataset 无需预先定义对应表的各个字段的属性,可以直接从查询出来的结果集(非强类型(UnTyped)Dataset)中取值例如: string lFirstName = lDs.Table["MyTable"].Rows[0]["FirstName"].ToString(); (其中lDs是类Dataset的一个对象) 强类型的(Strong-Typed)Da... 阅读全文
摘要:
最全的CSS浏览器兼容问题整理1 1. Div居中问题 div设置 margin-left, margin-right 为 auto 时已经居中,IE 不行,IE需要设定body居中,首先在父级元素定义text-algin: center;这个的意思就是在父级元素内的内容居中。 2.链接(a标签)的边框与背景 a链接加边框和背景色,需设置 display: block, 同时设置 f... 阅读全文