码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
MYSQL查询重复记录的方法
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
drop,truncate与delete的区别
注意:这里说的delete是指不带where子句的delete语句 相同点 truncate和不带where子句的delete, 以及drop都会删除表内的数据 不同点: 1. truncate和 delete只删除数据不删除表的结构(定义) drop语句将删除表的结构被依赖的约束(constrai...
分类:其他好文   时间:2015-07-10 10:50:19    阅读次数:97
leetCode 40.Combination Sum II(组合总和II) 解题思路和方法
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
leetCode 39.Combination Sum(组合总和) 解题思路和方法
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
[leedcode 36] 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 ...
分类:其他好文   时间:2015-07-10 00:11:40    阅读次数:178
mysql之子查询
所谓子查询,就是指在一个查询之中嵌套了其他的若干查询,通过子查询可以实现多表查询,该查询语句中可能包含IN,ANY,ALL和EXISTS等关键字,除此之外还可以包含比较运算符,子查询经常出现在WHERE和FROM字句中。WHERE字句中的子查询:该位置处的子查询一般返回单行单列,多行单列,单行多列数...
分类:数据库   时间:2015-07-10 00:08:18    阅读次数:208
leetCode 36.Valid Sudoku(有效的数独) 解题思路和方法
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
[leedcode 35] 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 or...
分类:其他好文   时间:2015-07-09 19:38:18    阅读次数:112
update 中exists使用
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
leetCode 35.Search Insert Position (搜索插入位置) 解题思路和方法
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!