//: Playground - noun: a place where people can playimport UIKit// fallthrough// fallthrough会在当前case执行完之后继续下一个case// 如果在下一个case中声明了变量, 则不能使用fallthroug...
分类:
编程语言 时间:
2015-12-16 19:07:19
阅读次数:
157
在我们的项目中我们经常会查找一些集合中的重要元素,当然我们可以使用常规的foreach循环和if语句来查询,但是我们要学会使用System.Linq命名空间下面的静态类Enumerable下面的静态方法来进行相关查询,public static IEnumerable Where(this IEn....
分类:
其他好文 时间:
2015-12-16 19:05:47
阅读次数:
114
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
//: 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
从不同的表复制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
//: Playground - noun: a place where people can playimport UIKitvar str = "Hello, playground"let orangeAreYellowColor = truelet appleIsBlue = falseif ...
分类:
编程语言 时间:
2015-12-16 12:33:38
阅读次数:
137
//: 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
//: Playground - noun: a place where people can playimport UIKitvar str = "Hello, playground"// nil的聚合运算可以说是为了可选值而出的 // 它的体现是"??"// eg:// a ?? b -> ....
分类:
编程语言 时间:
2015-12-16 12:25:25
阅读次数:
154
//: 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
//: Playground - noun: a place where people can playimport UIKitvar str = "Hello, playground"// 断言, 必须符合某个条件,程序才能继续运行下去// 可以看做是一个底线要求var age = 19;asse...
分类:
编程语言 时间:
2015-12-16 12:16:24
阅读次数:
184