- 博客(12)
- 收藏
- 关注
转载 group by 用法解析
group by 用法解析 group by语法可以根据给定数据列的每个成员对查询结果进行分组统计,最终得到一个分组汇总表。 SELECT子句中的列名必须为分组列或列函数。列函数对于GROUP BY子句定义的每个组各返回一个结果。 某个员工信息表结构和数据如下: id name dept salary edlevel hiredate 1 张三 开发部 2000
2015-07-06 12:34:23 2733
原创 get file's name from a folder using Java
File file=new File("F:\\Develop\\CPractice\\circleDetector\\twitter"); String fileList[]; fileList=file.list(); for(int i=0;ifileList.length; i++){ System.out.println(fileList[i]); }
2015-03-01 08:24:24 453
原创 Matlab read data from txt file and then cluster data using K-means
//-----------------------------------------------------------read from filesfid=fopen('F://CleancustomerTweetsNum.txt','r');best_data=[];while 1 tline=fgetl(fid); if ~ischar(tline),break;en
2015-02-13 12:32:27 495
原创 Three cases of js hover for more information
.node {stroke: #fff;stroke-width: 1.5px;}.nodeDetail {stroke: #fff;stroke-width: 1.5px;}.link {stroke: #999;stroke-opacity: .6;}node .text {font: 12px sans-serif;pointer-events: none;
2015-01-28 08:54:04 575
原创 D3 Zoom + Pan
Zoom + Pan.overlay { fill: none; pointer-events: all;}var width = 960, height = 500;var randomX = d3.random.normal(width / 2, 80), randomY = d3.random.normal(height / 2, 80);
2015-01-28 08:47:33 1087
原创 删除表中重复的数据
delete from tt_users where user_ID in ( select temp.user_ID from ( select user_ID from tt_users temp group by user_ID having co
2015-01-09 07:06:35 443
原创 You can't specify target table 'tableName' for update in FROM clause
The Error "You can't specify target table for update in FROM clause" means in the one sql syntax, you cannot select some columns first from one table than update some columns in this table.In t
2015-01-09 06:56:08 651
原创 mysql拼接字符串后插入
insert into tt_users (user_ID,crawl_date,User_URL) select followingUserName,crawlDate,concat('https://twitter.com/',followingUserName) from westpacfollowing;
2015-01-09 06:54:20 1518
原创 提取一个表中的部分数据去建一个新的表
create table twitterdb.amp select distinct * from twitterdb.hailtweets where tweets like '% AMP %';
2015-01-03 08:31:02 1172
原创 删除一个表中与另一个表主键重复的数据 然后将俩个表的数据合并
bank表和commonwealth表有相同的表结构, tweetsID为主键删除一个表中与另一个表主键重复的数据 然后将俩个表的数据合并
2015-01-03 08:10:51 800
原创 Prevent the system to be got access without login
Write in the Head of JSP
2014-12-24 06:04:25 437
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人