1.查看SQL语句IO消耗set statistics io on select * from dbo.jx_order where order_time>'2011-04-12 12:49:57.580'set statistics io off2.查看SQL语句时间消耗set statisti....
分类:
数据库 时间:
2014-07-09 21:49:17
阅读次数:
314
Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the following matri...
分类:
其他好文 时间:
2014-07-08 23:54:39
阅读次数:
407
http://en.wikipedia.org/wiki/Order-independent_transparencyOrder-independent transparencyFrom Wikipedia, the free encyclopediaThe importance of blendi...
分类:
其他好文 时间:
2014-07-08 23:42:14
阅读次数:
355
1、ViewResolverUrlBasedViewResolver 这个东西是根据url 进行路由的。网上搜了1、order 排序,同名出现各种问题2、XmlViewResolver,BeanNameViewResolver,ResourceBundleViewResolver 这个根据配置文件....
分类:
编程语言 时间:
2014-07-06 21:08:22
阅读次数:
383
SQL 如下:sql 1.SELECT X.USER_ID, X.TOTAL_NO, X.ORDER_NO, X.ORDER_NO / X.TOTAL_NO AS PERCENTAGE_NOFROM (SELECT @rowNum := @rowNum + 1 AS ORDER_NO, @rowCo...
分类:
数据库 时间:
2014-07-06 19:22:30
阅读次数:
175
--查询所有数据库USE mastergoselect [name] from [sysdatabases] order by [name]--查询其中一个数据库test,就可以得到这个数据库中的所有的表名了,语句如下:USE testgoselect [id], [name] from [syso...
分类:
数据库 时间:
2014-07-06 15:31:11
阅读次数:
269
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:
其他好文 时间:
2014-07-06 13:38:13
阅读次数:
168
在本篇文章中,我们将讲述如何在IE中使用ActiveX功能来访问并解析XML文档,由此允许网络冲浪者操纵它们。这一网页将传入并运行脚本的初始化。你一定确保order.xml文档与jsxml.html在相同的相同的路径上。初始化部分将一个新的ActiveX对象例示为MSXML2.DOMDocument...
分类:
编程语言 时间:
2014-07-06 13:10:41
阅读次数:
260
N+1问题
N+1问题是数据库访问中最常见的一个性能问题,首先介绍一下什么是N+1问题:
举个例子,我们数据库中有两张表,一个是Customers,一个是Orders。Orders中含有一个外键customer_id,指向了Customers的主键id。
想要得到所有Customer以及其分别对应的Order,一种写法是
SELECT * FROM Customers;...
分类:
其他好文 时间:
2014-07-04 07:26:48
阅读次数:
265
1、sum over用法
sum(col1) over(partition by col2 order by col3 )
以上的函数可以理解为:按col2 进行分组(partition ),每组以col3 进行排序(order),并进行连续加总(sum)
表a,内容如下:
B C D
02 02 1
02 03 2
02 04 3
02 05...
分类:
其他好文 时间:
2014-07-04 07:09:15
阅读次数:
503