在DB2中查看sql的执行计划没有其它数据库方便,需要经过好几步,这里我把步骤整理成shell脚本以方便使用,如下:#!/bin/sh
db2 connect to
db2 -tvf $HOME/sqllib/misc/EXPLAIN.DDL
db2 set current explain mode explain
db2 "
"
db2 set current explain m...
分类:
数据库 时间:
2014-11-16 20:13:38
阅读次数:
246
Problem:given an array that contains duplicates (except one value), find the one value that does not have a duplicate in that array. Explain the compl...
分类:
其他好文 时间:
2014-11-15 06:35:12
阅读次数:
202
题目1739: [Usaco2005 mar]Space Elevator 太空电梯Time Limit:5 SecMemory Limit:64 MBDescriptionThe cows are going to space! They plan to achieve orbit by buil...
分类:
其他好文 时间:
2014-11-14 20:53:55
阅读次数:
940
This guide explain how to install dig dns tool on windows 7 in few steps:1. First go tohttp://www.isc.org/downloadsand look forBIND,underneathselect r...
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:
其他好文 时间:
2014-11-13 18:06:38
阅读次数:
209
Explain语法EXPLAIN SELECT ……变体:1. EXPLAIN EXTENDED SELECT ……将执行计划“反编译”成SELECT语句,运行SHOW WARNINGS 可得到被MySQL优化器优化后的查询语句 2. EXPLAIN PARTITIONS SELECT ……用于分....
分类:
数据库 时间:
2014-11-12 16:25:54
阅读次数:
214
DescriptionThe cows are going to space! They plan to achieve orbit by building a sort of space elevator: a giant tower of blocks. They have K (1 //把多重...
分类:
其他好文 时间:
2014-11-11 22:24:28
阅读次数:
232
各位1111快乐,不知道大家的卡上还剩多少钱啊~~~TCP server目前遇到一点小瓶颈,不过server的两个人承诺说明天就可以搞定,给他们加油!~!今天的plan~ ViewShilin Liu制作被破坏的砖块贴图ClientJiafan Zhu构造通讯类:Yiming Liao发送tan.....
分类:
其他好文 时间:
2014-11-11 14:18:13
阅读次数:
187
使用explain分析及优化由多表(三个以上)组成的视图性能
总结:
1、建立多表(三个表或以上)关联视图时,如果是主表和副表都有的字段,尽量使用主表的字段(特别是主表的主键)
2、副表的字段(无论是普通字段还是主键、索引字段)作为查询条件对查询都没有帮助,都需进行全表检索...
分类:
其他好文 时间:
2014-11-10 15:33:05
阅读次数:
183
leetcode的第一题,回文数判断。原题如下:For example, "A man, a plan, a canal: Panama" is a palindrome. "race a car" is not a palindrome.Note: Have you consider that t...
分类:
其他好文 时间:
2014-11-09 19:33:04
阅读次数:
300