Integers1, 2, 3,...,nare placed on a circle in
the increasing order as in the following figure. We want to construct a sequence
from these numbers on ...
分类:
其他好文 时间:
2014-05-14 02:54:10
阅读次数:
354
select * from ssrole; --角色表select * from ssrolemenu
where roleid = roleid; --角色关联菜单表select * from ssmenu where menuid = menui...
分类:
其他好文 时间:
2014-05-14 02:43:57
阅读次数:
217
START FROM 2014/5/12 for memory of
wenchuan【1】关于java内存的三篇文章:1,内存模型http://www.cnblogs.com/aigongsi/archive/2012/04/26/2470296.html而内存模型就是规定了一个规则,处理器如何同...
分类:
编程语言 时间:
2014-05-14 01:42:20
阅读次数:
248
之前安装svn一直不行,弄了好久,还是在线安装方便。
在Help里面点击Install from Site,然后直接图解:...
分类:
系统相关 时间:
2014-05-14 00:35:54
阅读次数:
452
Pat1018代码
题目描述:
There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at any station and return it to an...
分类:
其他好文 时间:
2014-05-13 23:27:04
阅读次数:
582
Given an array, for example, 246135, an inversion pair is the pair whose first value is larger than its second value according to the sequence from left to right, (2,1) (4,1) (4,3) (6,1) (6,3) (6,5)....
分类:
其他好文 时间:
2014-05-13 08:03:58
阅读次数:
338
数据库查询中的特殊字符的问题
在进行数据库的查询时,会经常遇到这样的情况:
例如想在一个用户数据库中查询他的用户名和他的密码,但恰好该用户使用的名字和密码中有特殊的字符,例如单引号,“|”号,双引号或者连字符“&”。
例如他的名字是1"test,密码是A|&900
这时当你执行以下的查询语句时,肯定会报错:
SQL = "SELECT * FROM SecurityLe...
分类:
数据库 时间:
2014-05-13 06:09:03
阅读次数:
454
三目运算来计算总页数 totalpage=sum/pagesize+sum%pagesize==0?0:1;//计算总页数,sum为总记录数
2.第page页的记录的起始位置和结束位置分别为:
pagesize*(page-1)+1;起始位置
pagesize*page;j、结束位置
注:
1.可以使用差集(minus)在数据库查询中实现分页,但效率低'
2.常用子查询将rownum作为另一结果集的字段来实现分页。
select ee.* from(select e.* , rownum rr...
分类:
其他好文 时间:
2014-05-13 05:14:41
阅读次数:
303
下面是一次10GRAC增加ASM实例报错。故障之前就做了一次crs_unregisterASM的操作,随后增加ASM实例就增加不上了。欢迎大家加入ORACLE超级群:17115662免费解决各种ORACLE问题,以后BLOG将迁移到http://www.htz.pw 1,故障现象[oracle@www.htz.pworacle]$srvctladdasm-nsol1-..
分类:
其他好文 时间:
2014-05-13 04:46:01
阅读次数:
405
#!/usr/bin/envpythonimporttime,MySQLdbfromsubprocessimportPopenfromsubprocessimportPIPEimportdns.queryimportdns.messageimportdns.tsigimportdns.tsigkeyringimportdns.updatedefset_dns(ip_list):key=dns.tsigkeyring.from_text({"cui.com":"SIvcwHj3goqYl0vKS6yOtdugx..
分类:
数据库 时间:
2014-05-13 02:04:53
阅读次数:
377