上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 24 下一页
摘要: 数据库的随机查询SQL1. Oracle,随机查询20条select * from(select * from 表名order by dbms_random.value)where rownum <= 20;2.MS SQL Server,随机查询20条select top 20* from 表名o... 阅读全文
posted @ 2013-05-11 15:41 顿金 阅读(157) 评论(0) 推荐(0) 编辑
摘要: #include void bubbleSort(intarr[],intcount){ inti = count, j; inttemp; while(i > 0) { for(j = 0; j arr[j + 1]) { temp = arr[j]; ... 阅读全文
posted @ 2013-05-11 15:34 顿金 阅读(165) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingNPOI.SS.UserModel;usingSystem.IO;usingSystem.Data;usingNPOI.HSSF.Us... 阅读全文
posted @ 2013-05-11 15:00 顿金 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Connection 物件 Connection 对象主要是开启程序和数据库之间的连结。没有利用连结对象将数据库打开,是无法从数据库中取得数据的。这个物件在ADO.NET的最底层,我们可以自己产生这个对象,或是由其它的对象自动产生。Command 物件 Command 对象主要可以用来对数据库发出一... 阅读全文
posted @ 2013-05-11 14:23 顿金 阅读(107) 评论(0) 推荐(0) 编辑
摘要: intmethod(inti) {if(i == 1 || i==2)return1;elsereturnmethod(i-1) + method(i - 2);} 阅读全文
posted @ 2013-04-09 20:02 顿金 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 创建死锁 begin transelect * from paymenthistory WITH (TABLOCKX) --WAITFOR DELAY '00:00:10' 延时,相当于sleep commit tran--注释该句后将产生死锁查找被锁的进程 SELECT requ... 阅读全文
posted @ 2013-04-05 16:57 顿金 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Create Function [dbo].[Func_SplitStrToTable](@str varchar(8000))Returns @tableName Table( str2table varchar(100))As--该函数用于把一个用逗号分隔的多个数据字符串变成一个表的一列,例... 阅读全文
posted @ 2013-04-05 16:43 顿金 阅读(725) 评论(0) 推荐(0) 编辑
摘要: //以下为JQuery代码$(function() { var isStrict = document.compatMode == "CSS1Compat"; jQuery.extend({ w: function() { var w = isStrict ? document... 阅读全文
posted @ 2013-04-05 16:22 顿金 阅读(280) 评论(0) 推荐(0) 编辑
摘要: selecta.creatdate,a.subcount,b.total,a.subcount*100/totalfrom(selectcreatdate,COUNT(0)subcountfromtestwhere[percent]>75groupbycreatdate)a,(selectcreat... 阅读全文
posted @ 2013-04-05 16:16 顿金 阅读(199) 评论(0) 推荐(0) 编辑
摘要: (\u3000|\s)(\u3000|\s)* 阅读全文
posted @ 2013-03-27 21:44 顿金 阅读(382) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 24 下一页