//: Playground - noun: a place where people can play
import UIKit
//使用 enum
来创建枚举。如同类和其他命名类型,枚举也可以有方法
enum Rank:
Int {
case Ace =
1
case Two, Three, Four, Five, Six, ...
分类:
其他好文 时间:
2015-07-01 18:33:33
阅读次数:
106
//: Playground - noun: a place where people can play
import Cocoa
var str1 =
"供选链接和强制拆包的不同。"
class Person {
var residence:
Residence?//供选连接
}
class Residence {
var ro...
分类:
其他好文 时间:
2015-07-01 18:31:54
阅读次数:
94
//: Playground - noun: a place where people can play
import Cocoa
class Person {
var residence:
Residence?//供选连接
}
class Residence {
var rooms = [Room]()
var number...
分类:
其他好文 时间:
2015-07-01 18:31:26
阅读次数:
112
//: Playground - noun: a place where people can play
import UIKit
//多返回值函数
func countss(string:
String) -> (vowels:
Int,consonants:
Int,others: Int) {
var vowels =
0, consonants...
分类:
其他好文 时间:
2015-07-01 18:30:19
阅读次数:
115
盘点异常情况下的紧急处理:update kwkctab set kcl = (select pdl from view_kw10 where view_kw10.itemno = kwkctab.itemno and view_kw10.KW = kwkctab.KWand view_kw10.gy...
分类:
其他好文 时间:
2015-07-01 17:46:59
阅读次数:
141
1 var customers = db.Customers.Where(c => c.name=='小明');2 foreach (var customer in customers)3 {4 customer.Address = "Guangzhou";5 }6 db.SubmitCha...
分类:
其他好文 时间:
2015-07-01 17:37:04
阅读次数:
120
1:Oracle查询某个时间段内,每天发送短信的总条数select tab.tday, (select count(1) from t_msgsendrecode m where trunc(m.sendtime) = to_date(tab.tday,'yyyy-mm-dd'))from (sel...
分类:
数据库 时间:
2015-07-01 17:16:17
阅读次数:
177
数据库中表的复杂查询
1、连接查询
1.0连接的基本语法格式:
from TABLE1 join_type TABLE2 [on (join_condition)][where (query_condition)]
TABLE1:左表
TABLE2:右表
join_type:连接的类型。交叉、内连接、左外连接、右外连接
on:设置连接条件
where:对连...
分类:
数据库 时间:
2015-07-01 16:04:32
阅读次数:
142
一、前言今天在程序的日志中出现这个错误,网上搜了一下发现,说是Oracle的对象名字最多是30个字符,不能超过30,而我出错的sql是:"select * from test where INSERTTIMEL <= to_date('2016-05-28 09:51:58', 'yyyy-MM-d...
分类:
数据库 时间:
2015-07-01 15:34:47
阅读次数:
135
1. 查询表的部分字段属性select t.*, c.comments from user_tab_columns t, user_col_comments c where t.table_name = c.table_name and t.column_name = c.column_nam...
分类:
数据库 时间:
2015-07-01 11:52:42
阅读次数:
162