select * from hengtu_demandpush a where (a.did,a.mid) in (select did,mid from hengtu_demandpush group by did,mid having count(*) > 1) 或select * from h...
分类:
数据库 时间:
2015-07-10 13:04:13
阅读次数:
156
注意:这里说的delete是指不带where子句的delete语句 相同点 truncate和不带where子句的delete, 以及drop都会删除表内的数据 不同点: 1. truncate和 delete只删除数据不删除表的结构(定义) drop语句将删除表的结构被依赖的约束(constrai...
分类:
其他好文 时间:
2015-07-10 10:50:19
阅读次数:
97
Combination Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.
Each number in C may only be used...
分类:
其他好文 时间:
2015-07-10 09:30:20
阅读次数:
237
Combination Sum
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.
The same repeated number may be chosen from...
分类:
其他好文 时间:
2015-07-10 09:29:59
阅读次数:
424
Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with ...
分类:
其他好文 时间:
2015-07-10 00:11:40
阅读次数:
178
所谓子查询,就是指在一个查询之中嵌套了其他的若干查询,通过子查询可以实现多表查询,该查询语句中可能包含IN,ANY,ALL和EXISTS等关键字,除此之外还可以包含比较运算符,子查询经常出现在WHERE和FROM字句中。WHERE字句中的子查询:该位置处的子查询一般返回单行单列,多行单列,单行多列数...
分类:
数据库 时间:
2015-07-10 00:08:18
阅读次数:
208
Valid Sudoku
Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.
The Sudoku board could be partially filled, where empty cells are filled with the character '.'.
A parti...
分类:
其他好文 时间:
2015-07-09 19:59:01
阅读次数:
130
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-07-09 19:38:18
阅读次数:
112
update 中使用exists和不适用exists区别,为更客观的发现问题,执行以下2个SQL。SQL1:update NET_S_SUBSTATION a set DEV_NAME = (SELECT name1 FROM ff b where b.id1 = a.dev_id);执行结果:更新...
分类:
其他好文 时间:
2015-07-09 19:24:48
阅读次数:
496
Search Insert Position
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 order.
You may assume...
分类:
其他好文 时间:
2015-07-09 18:07:25
阅读次数:
125