摘要: void down(string filepath) { //确定文件的物理路径 string filePath = Server.MapPath(filepath); FileInfo Fi = new FileInfo(filePath); if (Fi.Exists) { FileStream fs = new FileStream(filePath, FileMode.Open); byte[] bytes = new byte[(int)fs.Length]; fs.Read(bytes, 0, bytes.Length); fs.Close(); Response.ContentT 阅读全文
posted @ 2011-04-07 15:45 锥子 阅读(349) 评论(0) 推荐(0) 编辑
 
摘要: 题:取表table中100条-200条之间数据方法1:临时表select top 200 * into #aa from table order by id-- 将top m笔插入 临时表set rowcount 100select * from #aa order byid desc --drop table #aa --删除临时表方法2:select top 100 * from(select... 阅读全文
posted @ 2010-05-18 17:36 锥子 阅读(2288) 评论(4) 推荐(2) 编辑
 
摘要: 触发器是一种特殊的存储过程,类似于其它编程语言中的事件函数,SQL Server 允许为 INSERT、UPDATE、DELETE 创建触发器,当在表(视图)中插入、更新、删除记录时,触发一个或一系列 T-SQL 语句。本专题的目的并非是向您详尽地介绍触发器,而是系统地向您介绍触发器的常用知识与相关应用,并与您一起探讨应用经验,如果您需要了解触发器不常用的知识点,请参见 SQL Server 联机... 阅读全文
posted @ 2010-05-07 17:42 锥子 阅读(278) 评论(0) 推荐(1) 编辑
  2016年12月14日
摘要: var myDate = new Date(); myDate.getYear(); //获取当前年份(2位) myDate.getFullYear(); //获取完整的年份(4位,1970 ????) myDate.getMonth(); //获取当前月份(0 11,0代表1月) myDate.g 阅读全文
posted @ 2016-12-14 11:04 锥子 阅读(197) 评论(0) 推荐(0) 编辑
  2016年6月24日
摘要: ctrl+f查找: \href="[^"] " 替换为: href=" " ( 为替换后的内容,可根据需要更改! 一定要勾选:使用正则表达式(X)) 阅读全文
posted @ 2016-06-24 15:10 锥子 阅读(248) 评论(0) 推荐(0) 编辑
  2014年4月3日
摘要: /*未访问的颜色*/a:link{ color: #0066CC; text-decoration: none;}/*点击后的颜色*/a:visited{ color: red; text-decoration: none;}/*鼠标悬停的颜色*/a:hover{ color: #CC0000; text-decoration: none;}/*鼠标点中激活的颜色*/a:active{ color: blue; text-decoration: none;} 阅读全文
posted @ 2014-04-03 16:55 锥子 阅读(660) 评论(0) 推荐(0) 编辑
  2013年7月19日
摘要: 点点滴滴点点滴滴 阅读全文
posted @ 2013-07-19 16:32 锥子 阅读(270) 评论(0) 推荐(0) 编辑
  2013年5月23日
摘要: 如果是同一个实例下的两个数据库则可以直接更新如update table1 set col1 = b.col1 from 备份数据库名.dbo.table1 as b where table1.主键字段 = b.主键字段 阅读全文
posted @ 2013-05-23 15:11 锥子 阅读(365) 评论(0) 推荐(0) 编辑
  2013年4月24日
摘要: TextTest.Attributes["onFocus"] = "javascript:this.select();"; 阅读全文
posted @ 2013-04-24 15:13 锥子 阅读(520) 评论(0) 推荐(0) 编辑
  2013年4月11日
摘要: delete from table where id not in (select max(id) from table group by 字段) 阅读全文
posted @ 2013-04-11 17:44 锥子 阅读(131) 评论(0) 推荐(0) 编辑
  2013年3月7日
摘要: 最近由于对数据库的域名要排重,因为sql直接使用起来方便一些,就整理下A.截取从字符串左边开始N个字符 Declare @S1 varchar(100) Select @S1='http://www.cnblogs.com' Select Left(@S1,4) ------------------------------------ 显示结果: httpB.截取从字符串右边开始N个字符(例如取字符www.cnblogs.com) Declare @S1 varchar(100) Select @S1='http://www.cnblogs.com' Selec 阅读全文
posted @ 2013-03-07 16:13 锥子 阅读(583) 评论(0) 推荐(0) 编辑
  2011年5月16日
摘要: C#数组复制方法有哪些呢?在实际开发的过程中,我们需要掌握学习的有哪些呢?这里向你介绍5种方法,那么具体的实施方法是什么呢?让我们看看具体的内容。数组间的复制,int[] pins = {9,3,4,9};int [] alias = pins;这里出了错误,也是错误的根源,以上代码并没有出错,但是根本不是复制,因为pins和alias都是引用,存在于堆栈中,而数据9,3,4,3是一个int对象存在于堆中,int [] alias = pins;只不过是创建另一个引用,alias和pins同时指向{9,3,4,3},当修改其中一个引用的时候,势必影响另一个。复制的意思是新建一个和被复制对象一样 阅读全文
posted @ 2011-05-16 16:20 锥子 阅读(7373) 评论(1) 推荐(1) 编辑
  2011年4月28日
摘要: <html><head><title>绑定到Table</title></head><body><xml id="cdcat" src="被绑定table.xml" tppabs="将XML文件绑定到Table.xml"></xml><table border="1" datasrc="#cdcat"><thead><tr><th>演唱者</th& 阅读全文
posted @ 2011-04-28 17:45 锥子 阅读(408) 评论(0) 推荐(0) 编辑