1.分页
Oracle:
SELECT * FROM(SELECT A.*, ROWNUM RN FROM (select T.* from sj_receiptinfo t WHERE t.TAXNO LIKE CONCAT('%', CONCAT(?, '%')) order by t.id desc) A WHERE ROWNUM ?
mysql:
select * fr...
分类:
数据库 时间:
2015-03-15 16:53:17
阅读次数:
332
1.题目A peak element is an element that is greater than its neighbors.Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.The array may contain multiple peaks, in that...
分类:
其他好文 时间:
2015-03-15 15:17:57
阅读次数:
142
基本格式:select [all | distinct] select_listfrom table_list/view_list[where conditions][group by group_list][having conditions][order by order_list]例:sele...
分类:
数据库 时间:
2015-03-15 13:38:17
阅读次数:
189
5.1数据插入insert into 表名(字段名,字段名,...) values(字段值,字段值,...)5.2数据更新update tablename set columnname1=value1 [, columnname2=value2...] [where condition]注意:一个只...
分类:
数据库 时间:
2015-03-15 13:35:01
阅读次数:
159
1094. The Largest Generation (25)
时间限制
200 ms
内存限制
65536 kB
代码长度限制
16000 B
判题程序
Standard
作者
CHEN, Yue
A family hierarchy is usually presented by a pedigree tree where all the nodes on the...
分类:
其他好文 时间:
2015-03-15 09:34:14
阅读次数:
183
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:
其他好文 时间:
2015-03-15 02:02:44
阅读次数:
92
转载请注明出处:http://www.cnblogs.com/fraud/ ——by fraudD. Prefixes and SuffixesYou have a string s?=?s1s2...s|s|, where |s| is the length of string s, and si...
分类:
其他好文 时间:
2015-03-14 22:58:37
阅读次数:
225
变量variable:所有mysql变量都必须以@开头.存储过程创建语法create PROCEDURE 存储过程名()BEGIN select * from `user` where `name`='张三'; --执行语句.END调用语法call 存储过程名()删除存储过程drop PROCE.....
分类:
其他好文 时间:
2015-03-14 21:35:31
阅读次数:
165
1.有可区分的主键,其他数据相同select * from 表名 dl where dl.id not in (select min(d.id) from表名dgroup by 重复列)2.重复数据只能通过RowNum、RowId区分的数据select * from 表名 where rowid i...
分类:
数据库 时间:
2015-03-14 18:29:04
阅读次数:
132
with cte as( select Id,Pid,DeptName,0 as lvl from Department where Id = 2 union all select d.Id,d.Pid,d.DeptName,lvl+1 from cte c inner jo...
分类:
数据库 时间:
2015-03-14 16:44:34
阅读次数:
181