用explain优化了一个营业日汇总报表的查询。将一处type为all的查询改为range。sql是一个报表使用:EXPLAIN SELECT DATE_FORMAT(t1.business_date,'%Y-%m-%d') AS business_date, IF(t3.people_num>0,...
分类:
数据库 时间:
2014-12-05 18:56:00
阅读次数:
216
A couple of years ago, a new world wide crisis started, leaving many people with economical problems. Some workers of a particular company are trying to ask for an increase in their salaries.
The com...
分类:
其他好文 时间:
2014-12-04 21:40:20
阅读次数:
289
I was too optimistic.It is take several days working on the demo.. The intresting thing is when I finished the demo, I understand how people make a ro...
分类:
编程语言 时间:
2014-12-04 00:41:10
阅读次数:
219
javascript+css3简单的手风琴效果 Landscapes People Nature Urban Abstract
分类:
编程语言 时间:
2014-12-03 14:12:05
阅读次数:
159
在javascript里面,我们知道有两种常见的创建对象的方法,一种是使用对象直接量:对象直接量是由若干值/键对组成的映射表,值/键对用逗号”,“分隔开,整个部分用花括号”{}“括起来。例如:var empty={}; var people = { name:'kobe', age:'...
分类:
编程语言 时间:
2014-12-02 20:44:27
阅读次数:
164
Awesome Backup System
Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d
& %I64u
Submit Status Practice URAL
2030
Description
It is known that all people can be d...
分类:
其他好文 时间:
2014-12-02 00:07:57
阅读次数:
281
解决方法去www.json.org下载JSON2.js再调用JSON.stringify(JSONData)将JSON对象转化为JSON串。var people = [{ "UserName": "t1", "PassWord": "111111", "Sex": "男" }, { "UserNam...
分类:
编程语言 时间:
2014-12-01 14:11:00
阅读次数:
162
英文原文:How to reward skilled coders with something other than people management 你手下有一群很出色的程序员,他们都非常想在事业上取得进步。你的这个团队成绩斐然,这是他们双手创造的,你知道这些,你想奖赏他们——为他们所做...
分类:
其他好文 时间:
2014-11-28 14:22:31
阅读次数:
160
赋值语句普通赋值:>>> x,y,z = 1,2,3>>> print x,y,z1 2 3>>> x,y = y,x>>> print x,y2 1元组(序列)解包赋值:>>> a = (1,2,3)>>> x,y,z = a>>> x1字典赋值:>>> people = {"name":"cq"...
分类:
编程语言 时间:
2014-11-27 01:28:13
阅读次数:
203
最长上升子序列的nlogn的解法,不过要注意的是 x按从小到大排序,y要按从大到小排序。对于同样的x,在维护的单调数组中y应该保留较小的那个。#include#include#include#include#include#include#include#includeusing namespace...
分类:
其他好文 时间:
2014-11-26 22:35:18
阅读次数:
161