码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
Swift - 25 - 控制转移和二维数组
//: Playground - noun: a place where people can playimport UIKit// fallthrough// fallthrough会在当前case执行完之后继续下一个case// 如果在下一个case中声明了变量, 则不能使用fallthroug...
分类:编程语言   时间:2015-12-16 19:07:19    阅读次数:157
如何在集合中巧用Where来查找相关元素
在我们的项目中我们经常会查找一些集合中的重要元素,当然我们可以使用常规的foreach循环和if语句来查询,但是我们要学会使用System.Linq命名空间下面的静态类Enumerable下面的静态方法来进行相关查询,public static IEnumerable Where(this IEn....
分类:其他好文   时间:2015-12-16 19:05:47    阅读次数:114
oracle中提高order by的性能
1、如果order by columnA,那么在where查询条件中添加条件columnA=value,则oracle内部会过滤order by排序,直接用索引。2、如果order by columnA,columnB,那么在where查询条件中添加条件columnA=value1,columnB=...
分类:数据库   时间:2015-12-16 17:22:17    阅读次数:249
Swift - 24 - switch语句的高级用法
//: Playground - noun: a place where people can playimport UIKit// 对区间进行判断var score = 90switch score {case 0: print("You got an egg!")case 1..是介绍运算...
分类:编程语言   时间:2015-12-16 17:11:15    阅读次数:162
mysql 常用语句
从不同的表复制insert into 表1 select * from 表2 where id =1同一张表中复制(无主键)insert into 表1 select * from 表2 where id =1同一张表中复制(有主键)insert into 表1(字段1,字段2,字段3) selec...
分类:数据库   时间:2015-12-16 17:08:35    阅读次数:145
Swift - 07 - 布尔类型
//: Playground - noun: a place where people can playimport UIKitvar str = "Hello, playground"let orangeAreYellowColor = truelet appleIsBlue = falseif ...
分类:编程语言   时间:2015-12-16 12:33:38    阅读次数:137
Swift - 06 - 数值类型转换和类型别名
//: Playground - noun: a place where people can playimport UIKitvar str = "Hello, playground"// 数值类型转换let three = 3let PI = Double(three) + 0.1415926 ...
分类:编程语言   时间:2015-12-16 12:27:15    阅读次数:148
Swift - 11 - nil聚合运算
//: Playground - noun: a place where people can playimport UIKitvar str = "Hello, playground"// nil的聚合运算可以说是为了可选值而出的 // 它的体现是"??"// eg:// a ?? b -> ....
分类:编程语言   时间:2015-12-16 12:25:25    阅读次数:154
Swift - 12 - 区间运算符和for-in
//: Playground - noun: a place where people can playimport UIKitvar str = "Hello, playground"var a = 1, b = 10// a到b(包含a,b) [a,b]a...b// a到b-1(包含a,不包含...
分类:编程语言   时间:2015-12-16 12:21:53    阅读次数:169
Swift - 10 - assert(断言)
//: Playground - noun: a place where people can playimport UIKitvar str = "Hello, playground"// 断言, 必须符合某个条件,程序才能继续运行下去// 可以看做是一个底线要求var age = 19;asse...
分类:编程语言   时间:2015-12-16 12:16:24    阅读次数:184
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!