1. mybatis中查询语句中的resultType的对象的属性都要能在select语句中有对应,不能少也不能多。 例如: SELECT DISTINCT f.city_name as cityName, ifnull(c.business_type,'未知业务类型') as businessT....
分类:
其他好文 时间:
2015-04-16 13:49:22
阅读次数:
146
后缀数组水题
先求所有的子串数,根据长度枚举,共(n+1)*n/2种
当height[i]>0时,说明height[i]这个前缀与其他子串相同,减去这height[i]个子串
#include
#include
#include
using namespace std;
#define N 1005
int r[N],sa[N],height[N],rank[N],wa[N],wb[N],w...
分类:
其他好文 时间:
2015-04-14 09:59:40
阅读次数:
125
problem:
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.
For example,
Given 1->2->3->3->4->4->5, return 1...
分类:
其他好文 时间:
2015-04-13 19:03:43
阅读次数:
121
Given a set of distinct integers, S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets.
For exa...
分类:
其他好文 时间:
2015-04-13 16:46:47
阅读次数:
130
temp表空间主要用途是进行排序运算[如创建索引、order by及group by、distinct、union/intersect/minus/、sort-merge及join、analyze命令]、索引[如创建索引、IMP进行数据导入]、访问视图等操作时提供临时的运算空间,当运算完成之后系统会自动清理。...
分类:
其他好文 时间:
2015-04-13 14:41:00
阅读次数:
124
* Problem: * Given a sorted linked list, delete all nodes that have duplicate numbers * leaving only distinct numbers from the original list. * Solut....
分类:
其他好文 时间:
2015-04-11 13:02:53
阅读次数:
112
1.计算列的用法 当查询计算列的时候:select 10 from deptno; 查询结果会是一列的数字10,deptno表有几行内容,这里就会出现多少行的10.2.distinct的用法。 主要作用是去重; 着重注意一点的是:当对两个或以上的字段去重时,字段之间是【或】的关系,只会去除那...
分类:
数据库 时间:
2015-04-10 23:57:00
阅读次数:
171
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.
For example,
Given 1->2->3->3->4->4->5, return 1->2->5.
Given 1->1-...
分类:
其他好文 时间:
2015-04-10 15:31:53
阅读次数:
114
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...
分类:
其他好文 时间:
2015-04-10 15:29:31
阅读次数:
161
AVG([distinct|all]x)【功能】统计数据表选中行x列的平均值。【参数】all表示对所有的值求平均值,distinct只对不同的值求平均值,默认为all如果有参数distinct或all,需有空格与x(列)隔开。【参数】x,只能为数值型字段【返回】数字值【示例】环境:create ta...
分类:
数据库 时间:
2015-04-10 15:07:23
阅读次数:
274