rpm -ivh jdk.rpm安装完毕后查看java版本 java -version安装完毕后倒入环境变量增加JAVA_HOME环境变量[root@test src]# vi /etc/profile在最后面增加:#set java environmentexport CATALINA_HOMEe...
分类:
系统相关 时间:
2014-06-28 18:23:01
阅读次数:
270
语法:ROW_NUMBER() OVER(PARTITION BY COLUMN ORDER BY COLUMN)简单的说row_number()从1开始,为每一条分组记录返回一个数字,这里的ROW_NUMBER() OVER (ORDER BY xlh DESC) 是先把xlh列降序,再为降序以后...
分类:
数据库 时间:
2014-06-28 18:08:45
阅读次数:
574
题目描述:把只包含因子2、3和5的数称作丑数(Ugly Number)。例如6、8都是丑数,但14不是,因为它包含因子7。习惯上我们把1当做是第一个丑数。求按从小到大的顺序的第N个丑数。输入:输入包括一个整数N(1#define MAXSIZE 1500void mkUglyNumber();int...
分类:
其他好文 时间:
2014-06-20 16:56:31
阅读次数:
197
按表中的字段 UpdateTime 按每天进行编号,每天的编号都从1开始编号,并附带表的主键 cid,把数据存入临时表中WITH temp AS (SELECT cid,updatetime, ROW_NUMBER() OVER (PARTITION BY CONVERT(varchar(10),....
分类:
数据库 时间:
2014-06-20 16:37:46
阅读次数:
221
能够在ios桌面的程序icon右上角显示数字(badge number)的方法在ViewController中的viewDidLoad方法中添加如下代码即可 - (void)viewDidLoad { [super viewDidLoad]; ...
分类:
其他好文 时间:
2014-06-20 16:05:23
阅读次数:
163
Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which rep...
分类:
其他好文 时间:
2014-06-20 15:30:19
阅读次数:
227
网上看见了好多例子都基本上是一样的,没有过多的解释,对于一个初学MySQL来说有点难,我把部分转摘过来如下 原文:http://www.cnblogs.com/buro79xxd/archive/2012/08/29/2662489.html要求目标:1.确定需求: 根据部门来分组,显示各员工在部....
分类:
数据库 时间:
2014-06-20 14:59:13
阅读次数:
235
需要安装的有:devel,client,server1、首先要看看有没有已经安装好的MySQL,以免产生冲突# rpm -qa | grep MySQL2、卸载冲突的版本# rpm -e MySQL-version //要先后卸载客服端和服务器端3、安装MySQL客服端和服务器端rpm安装,根据要安...
分类:
数据库 时间:
2014-06-20 14:44:30
阅读次数:
277
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2014-06-20 14:43:53
阅读次数:
137
A(Phone Number)1.暴力 #include #include #include #include #include using namespace std;int cmp(const void *a,const void *b){ return strcmp((char *)a...
分类:
其他好文 时间:
2014-06-20 14:41:04
阅读次数:
139