昨天看有个帖子说到的失效对象重新编译的问题,然后发现自己公司里也出现莫名其妙的失效对象。--创建自动编译失效过程事务记录表declare tabcnt integer := 0;begin select count(*) into tabcnt from dba_tables where tab.....
分类:
数据库 时间:
2015-10-10 19:55:22
阅读次数:
329
1.in 不支持子查询 eg. select * from src where key in(select key from test); 支持查询个数 eg. select * from src where key in(1,2,3,4,5); in 40000个 耗时25.766秒 ...
分类:
数据库 时间:
2015-10-10 17:09:11
阅读次数:
1677
题目:
Given an array nums containing n +
1 integers where each integer is between 1 and n (inclusive),
prove that at least one duplicate number must exist. Assume that there is only one duplicate n...
分类:
其他好文 时间:
2015-10-10 10:41:33
阅读次数:
206
Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with ...
分类:
其他好文 时间:
2015-10-10 06:44:54
阅读次数:
134
1、like的使用: 在数据库软件中进行测试时,书写的格式是:比如:select * from fdx.dbo.[User] where 1=1 and name like '%'+'a'+'%'//查找名字中含有‘a’的所有用户的信息
分类:
数据库 时间:
2015-10-09 19:59:31
阅读次数:
164
原文地址:http://lavasoft.blog.51cto.com/62575/1386870Mybatis like查询官方文档没有明确的例子可循,网上搜索了很多,都不正确。Mybatis 3.2.6经过尝试,给出三种可靠可用的写法:select * from person where nam...
分类:
其他好文 时间:
2015-10-09 19:41:11
阅读次数:
160
本文记录hive列通配查询相关使用,通常写hql的时候大家经常在where过滤条件中使用通配,其实在hive中select的时候对列同样可以使用正则通配。使用场景:表中列比较多,且有规律的名字(col1_a,col1_b,col2_z,col2_d,col10_w……),查数据是列出所有列比较麻烦(懒人模式)。select..
分类:
其他好文 时间:
2015-10-09 15:30:47
阅读次数:
272
$v){ $sql = 'SELECT * FROM '; $sql .= 'INFORMATION_SCHEMA.TABLES '; $sql .= 'WHERE '; $sql .= "table_name = '{$v['TABLE_NA...
分类:
数据库 时间:
2015-10-09 15:06:37
阅读次数:
181
1. 问题描述若报表使用的数据量是上百万条的话,觉得报表展现的速度慢,可以使用层式报表来提高报表展现速度。但由层式报表章节可以得知,层式报表必须是单数据集,若是多数据集的模板且数据量又很大,想要提高报表的查询速度要如何实现呢?2. 实现思路在定义数据集时通过使用数据库本身的行序号或者使用数据库函数生成行序号(即行号)并且在where条件中通过页码参数使得行号在一定范围内显示,点击自定义的上一页下一...
分类:
其他好文 时间:
2015-10-09 13:59:42
阅读次数:
251
相信很多用了mysql很久的人,对这两个字段属性的概念还不是很清楚,一般会有以下疑问:1、我字段类型是not null,为什么我可以插入空值2、为毛not null的效率比null高3、判断字段不为空的时候,到底要 select * from table where column '' 还是要用s....
分类:
数据库 时间:
2015-10-09 12:08:17
阅读次数:
160