Air RaidTime Limit:1000MSMemory Limit:10000KTotal
Submissions:6520Accepted:3877DescriptionConsider a town where all the streets
are one-way and each s...
分类:
其他好文 时间:
2014-06-06 23:19:59
阅读次数:
319
1,事务处理innodb 支持事务功能,myisam 不支持。Myisam
的执行速度更快,性能更好。2,select ,update ,insert ,delete
操作MyISAM:如果执行大量的SELECT,MyISAM是更好的选择InnoDB:如果你的数据执行大量的INSERT或UPDATE...
分类:
数据库 时间:
2014-06-06 21:36:17
阅读次数:
381
创建测试表 以用户jyu连接,创建测试表SQL> conn
jyu/jyu;Connected.SQL> create table t (id number, name varchar2(100));Table
created.SQL> insert into t select rownum,obj...
分类:
数据库 时间:
2014-06-06 21:01:49
阅读次数:
387
查看sqlserver被锁的表以及如何解锁查看被锁表:select
request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName
from sys.dm_tran_locks where resourc...
分类:
数据库 时间:
2014-06-06 20:57:54
阅读次数:
274
我们知道索引对我们dml操作的影响是很大的。我们需要对所建的索引进行跟踪,看看他们建的是否合理,是否用到了,对没有用到和用处不大的索引给予删除。对需要跟踪的索引进行跟踪alter
index 索引名 monitoring usage;通过观察v$object_usage; 来进行跟踪select *...
分类:
其他好文 时间:
2014-06-06 20:45:26
阅读次数:
190
1. /*+ALL_ROWS*/
表明对语句块选择基于开销的优化方法,并获得最佳吞吐量,使资源消耗最小化. 例如: SELECT /*+ALL+_ROWS*/
EMP_NO,EMP_NAM,DAT_IN FROM BSEMPMS WHERE EMP_NO=’SCOTT’; 2. /*+FIRST_R...
分类:
数据库 时间:
2014-06-06 18:24:51
阅读次数:
225
一般情况下,我们像下面代码中所示的这样使用非阻塞connect:#include
#include #include #include #include #include #include #include #include #include
#define EPOLL_MAXEVENTS 64in...
分类:
其他好文 时间:
2014-06-04 18:04:11
阅读次数:
314
本文总结一下平时经常使用的SQL语句以及一些ORACLE函数的微妙之处。欢迎大家多多补充平时最常用的SQL语句,供大家学习参考。SQL> select *
from temp2;NAME SORCE---------- ----------1 ...
分类:
数据库 时间:
2014-06-04 14:54:01
阅读次数:
329
近期就看到一篇博文,介绍limit性能的,感觉非常有用。limit
语法SELECT*FROMtableLIMIT[offset,]rows|rowsOFFSEToffset LIMIT 子句可以被用于强制 SELECT
语句返回指定的记录数。LIMIT 接受一个或两个数字参数。参数必须是一个整数....
分类:
数据库 时间:
2014-06-02 19:55:30
阅读次数:
267
问题描述:
Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n).
If d(a) = b and d(b) = a, where a b, then a and b are
an amicable pair and each ...
分类:
编程语言 时间:
2014-06-02 12:31:42
阅读次数:
298