码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
287. Find the Duplicate Number
题目:Given an arraynumscontainingn+ 1 integers where each integer is between 1 andn(inclusive), prove that at least one duplicate number must exist. Ass...
分类:其他好文   时间:2015-12-12 06:59:34    阅读次数:210
Mysql数据的备份与还原
数据的备份:1:简单的数据备份(单表备份)通过select语句,将查询到的数据,以文本文件的形式,存储起来!select字段列表intofile文件地址from表名where其他的select子句!select*intooutfile‘e:/VIP/stu.txt‘fromselect_student;默认的字段之间的分隔符,使用制表符,而记录..
分类:数据库   时间:2015-12-12 00:14:42    阅读次数:267
CONCAT substr group_concat find_in_set
(SELECT p.*,(SELECT CONCAT(m.name,m.id) FROM service_fastfix_category m WHERE m.id=SUBSTR(p.id,1,4)) AS parentcode,(SELECT GROUP_CONCAT(ee.name)FROM e...
分类:其他好文   时间:2015-12-11 22:18:19    阅读次数:304
层次查询start with ... connect by
如:select distinct dep_id from t_sys_dep_dimensions start with dep_id = (select dept_id from t_sys_person where mdm_user_id='#userId#') connect by nocy...
分类:其他好文   时间:2015-12-11 16:36:39    阅读次数:123
mysql left join on 后面的and 条件和 where条件区别
如:select * from table_1 left join table_2 on table_1.id = table_2.t1_id and table_2.status > 0select * from table_1 left join table_2 on table_1.id = ...
分类:数据库   时间:2015-12-11 13:07:55    阅读次数:546
[LeetCode]105. Word Search单词查找
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjace...
分类:其他好文   时间:2015-12-11 12:59:39    阅读次数:249
powershell脚本-DNS
functionInstallDNS{servermanagercmd-qc:\role.xml|Out-Null$xml=[xml](Get-Contentc:\role.xml)$dnsrole=$xml.servermanagerconfigurationquery.role|where{$_.id-eq"dns"}if($dnsrole.Installed-eq$false){servermanagercmd-i$dnsrole.id}else{Write-Host"DNS服务器角色已经..
分类:系统相关   时间:2015-12-11 07:06:36    阅读次数:255
leetcode 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-12-10 21:30:15    阅读次数:120
mysql中模糊查询的四种用法介绍
下面介绍mysql中模糊查询的四种用法: 1,%:表示任意0个或多个字符。可匹配任意类型和长度的字符,有些情况下若是中文,请使用两个百分号(%%)表示。 比如 SELECT * FROM [user] WHERE u_name LIKE '%三%' 将会把u_name为“张三”,“张猫三”、“三脚猫...
分类:数据库   时间:2015-12-10 16:30:58    阅读次数:209
Container With Most Water(LintCode)
Container With Most WaterGiven n non-negative integers a1, a2, ..., an, where each represents a point at coordinate(i, ai).nvertical lines are drawn s...
分类:其他好文   时间:2015-12-09 19:30:26    阅读次数:143
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!