今天调优一条SQL语句,由于SQL比较复杂,用autotrace很难一眼看出哪里出了问题,直接上10046。
SELECT AB.*
FROM (SELECT A.*, rownum RN
FROM (SELECT *
from (SELECT DISTINCT (D.DEVICE_ID), F.FUNCTION_LOCATION_ID
f...
分类:
数据库 时间:
2014-08-20 21:14:23
阅读次数:
447
Query query =new Query(); SysTableLookup lookup; QueryBuil dDataSource ds; TableId table=tableNum(InventTrans); FieldId field=f...
分类:
其他好文 时间:
2014-08-20 15:55:12
阅读次数:
132
1.SELECT选择 SELECT 列名称 FROM 表名称 SELECT * FROM 表名称(选择所有的列) SELECT SNO FROM SC SELECT * FROM SC2.DISTINCT列出不同的值,删除重复的 SELECT DISTINCT 列名称 FROM 表名称 ...
分类:
数据库 时间:
2014-08-20 08:09:56
阅读次数:
179
Intersecting LinesTime Limit:1000MSMemory Limit:10000KTotal Submissions:10967Accepted:4930DescriptionWe all know that a pair of distinct points on a p...
分类:
其他好文 时间:
2014-08-18 20:11:22
阅读次数:
244
Follow up for N-Queens problem.
Now, instead outputting board configurations, return the total number of distinct solutions.
public class Solution {
public int totalNQueens(int n) {
...
分类:
其他好文 时间:
2014-08-18 10:49:54
阅读次数:
206
select * from dc_restaurants; 31 select DISTINCT (restaurant_name),id from dc_restaurants; 31 (会按照id和 restaurant_name 联合 去重 )select DISTINCT (restaur....
分类:
其他好文 时间:
2014-08-18 10:46:03
阅读次数:
199
标记一下,慢慢研究 http://www.oracle-base.com/dba/scripts.php
Monitoring
access.sqlactive_sessions.sqlcache_hit_ratio.sqlcall_stack.sqlcode_dep.sqlcode_dep_distinct.sqlcode_de...
分类:
数据库 时间:
2014-08-16 23:51:01
阅读次数:
616
链接:http://poj.org/problem?id=2079TriangleTime Limit:3000MSMemory Limit:30000KTotal Submissions:8173Accepted:2423DescriptionGiven n distinct points on ...
分类:
其他好文 时间:
2014-08-16 17:07:40
阅读次数:
284
Given a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new string which is formed from th...
分类:
其他好文 时间:
2014-08-16 12:23:50
阅读次数:
221
Given a set of distinct integers, S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not c...
分类:
其他好文 时间:
2014-08-15 17:18:39
阅读次数:
177