码迷,mamicode.com
首页 >  
搜索关键字:from    ( 57817个结果
Sum Root to Leaf Numbers -- leetcode
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Find the tota...
分类:其他好文   时间:2015-05-24 10:12:08    阅读次数:109
iBatis.Net系列(九)-动态sql
能执行sql语句并并没有什么特别的,对于下面2条sql语句select * from Student where id=14select * from Student where id=14 and name='张三'这2条sql语句前半部分是相同的,如果按照以前的话,我们得写2个xml配置节点,现...
分类:数据库   时间:2015-05-24 10:02:11    阅读次数:170
常用数据库查询判断表和字段是否存在的SQL
常用数据库查询判断表和字段是否存在的SQL(如果结果为1表示存在,为0表示不存在) 1、MSSQL?Server 表: SELECT?COUNT(*)?FROM?dbo.sysobjects? WHERE?name=?‘table_name‘; 字段: SELECT?COUNT(*)?FRO...
分类:数据库   时间:2015-05-24 08:59:30    阅读次数:141
遇到过得基础的sql语句优化
1.尽量避免在列上进行运算,这样会导致索引失效。 例如:select * from t where year(d) >=2011;优化为:select * from t where d>='2011-01-01'2.使用JOIN时,应该用小结果集驱动大结果集(就是将搜出来的结果数量小的放前面,这样就能减少不必要的搜索功能)。同时把复杂的JOIN查询拆分成多个Query。因为JION多个表时,可能导...
分类:数据库   时间:2015-05-24 08:55:22    阅读次数:202
LeetCode Remove Duplicates from Sorted List
题目链接:Remove Duplicates from Sorted List 题面: Remove Duplicates from Sorted List  Total Accepted: 58257 Total Submissions: 168776My Submissions Question  Solution  Gi...
分类:其他好文   时间:2015-05-24 08:55:04    阅读次数:134
理解RESTful架构
From :http://www.ruanyifeng.com/blog/2011/09/restful.html越来越多的人开始意识到,网站即软件,而且是一种新型的软件。这种"互联网软件"采用客户端/服务器模式,建立在分布式体系上,通过互联网通信,具有高延时(high latency)、高并发等特...
分类:其他好文   时间:2015-05-24 06:29:18    阅读次数:182
oracle sql优化笔记
oracle优化一般分为:1、sql优化(现在oracle都会根据sql语句先进行必要的优化处理,这种应该用户不大了,但是像关联和嵌套查询肯定是和影响性能的) A、oracle的sql语句的条件是从右往左执行的,如下语句:select * from t_user where nation='回...
分类:数据库   时间:2015-05-24 01:18:13    阅读次数:180
Android Gradle配置
解决问题错误:Could not find the AndroidManifest.xml file, going up from path//打开appbuild.gradle文件加入以下代码/*** AA注解Apt配置*/apt { arguments { androidMa...
分类:移动开发   时间:2015-05-24 01:16:44    阅读次数:433
题目5:MySQL----------Consecutive Numbers
Write a SQL query to find all numbers that appear at least three times consecutively. +----+-----+# Write your MySQL query statement below select distinct Num from ( select Num, c...
分类:数据库   时间:2015-05-24 00:09:10    阅读次数:217
冒泡排序法
——from mepublic class BubbleSort{ public static int[] sortArray(int[] nums){ for(int i=0;inums[j]){ int temp=nums[i]; ...
分类:编程语言   时间:2015-05-24 00:02:58    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!