主要备忘:DATE_FORMAT 函数1:微博对比图(按日统计)SELECT DATE_FORMAT(tw.article_publish_time, '%Y-%m-%d'),count(page_id) FROM `tab_weibo` tw where tw.page_id =100206507...
分类:
数据库 时间:
2014-07-06 22:37:48
阅读次数:
291
本文摘自:http://adamcavendish.is-programmer.com/posts/38190.htm 引言众所周知,C++11 的新特性中有一个非常重要的特性,那就是 rvalue reference ,右值引用。 引入它的一个非常重要的原因是因为在 C++ 中,常常右值,通俗地讲...
分类:
编程语言 时间:
2014-07-06 16:12:12
阅读次数:
293
Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the orig...
分类:
其他好文 时间:
2014-07-06 16:01:23
阅读次数:
203
在Linux编译gcc时,遇到编译错误,究其根源是因为内存不足,这时通过修改swap大小解决了问题相关操作如下:1. 查看当前分区情况free -m 2. 增加 swap 大小, 2G 左右dd if=/dev/zero of=/var/swap bs=1024 count=2048000 3......
分类:
系统相关 时间:
2014-07-06 13:30:21
阅读次数:
226
count组函数:(过滤掉空的字段)select count(address),count(*) from b_usermax() avg() min(),sum()select sum(age),max(age),min(age),avg(nvl(age,0)) from b_user1 260 ...
分类:
数据库 时间:
2014-07-06 12:58:24
阅读次数:
364
在mysql中 FOUND_ROWS()与COUNT(*)都可以统计记录,如果都一样为什么会有两个这样的函数呢,下面我来介绍SELECT FOUND_ROWS()与COUNT(*)用法区别
SELECT语句中经常可能用LIMIT限制返回行数。有时候可能想要知道如果没有LIMIT会返回多少行,但又不想再执行一次相同语句。那么,在SELECT查询中包含SQL_CALC_FOUND_ROWS选...
分类:
数据库 时间:
2014-07-06 12:04:05
阅读次数:
271
#include
void selection_sort(int unsorted[],
int count)
{
for (int i =
0; i 1; i++) {
int min = unsorted[i], min_index = i;
for (int j = i; j
if (unsorte...
分类:
其他好文 时间:
2014-07-06 00:36:27
阅读次数:
225
//冒泡是相邻的两个数比较
void bubble_sort_low(int unsorted[],
int count) //低级
{
for (int i =
0; i1; i++) { //比较的趟数
printf("-----------------\n");
for (int j=0; j1-i; j++) {
...
分类:
其他好文 时间:
2014-07-06 00:35:49
阅读次数:
291
错误:Error msg: A reference was created to embedded interop assembly. because of an indirect reference to that assembly created by assembly. Consider ch...
分类:
其他好文 时间:
2014-07-05 21:05:45
阅读次数:
1107
好久没写博文了,添加一个练习题,选自《head_first_python》~~python列表:以中括号开始和结束"[]";列表项以逗号","分隔开,使用赋值操作符"="赋予一个标识符。如:movies=["theholy",1975,"terryjones",91,["graham",["michael","john","gilliam","idle","haha"]]]注释:1..
分类:
编程语言 时间:
2014-07-04 00:56:23
阅读次数:
596