摘要: 1、应尽量避免在 where 子句中使用!=或操作符,否则将引擎放弃使用索引而进行全表扫描。2、对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。3、应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全... 阅读全文
posted @ 2015-12-29 16:07 敬往事一杯酒 阅读(29700) 评论(0) 推荐(2)
摘要: 一、简单介绍代码示例: 1 #import "YYViewController.h" 2 #import "ASIHTTPRequest.h" 3 4 @interface YYViewController () 5 6 7 @end 8 9 @implementation YYViewCo... 阅读全文
posted @ 2015-07-02 09:57 敬往事一杯酒 阅读(212) 评论(0) 推荐(0)
摘要: //设置分割线颜色[self.left_tableView setSeparatorColor:[UIColor blackColor]];代理方法:使用前记得绑定delegate与datasource//UITableView返回行数 section判断不同分区返回不同的行数- (NSIntege... 阅读全文
posted @ 2015-06-30 22:44 敬往事一杯酒 阅读(220) 评论(0) 推荐(0)
摘要: 是因为苹果在新的编码,不推荐变量以new、copy等关键字开头。根据错误代码查询错误位置 是否变量名以new 或copy 开头 并修改 阅读全文
posted @ 2015-06-09 21:04 敬往事一杯酒 阅读(122) 评论(0) 推荐(0)
摘要: #import "ZYDownViewController.h"@interface ZYDownViewController ()@end@implementation ZYDownViewController{ // NSMutableData * buffer; long long _tot... 阅读全文
posted @ 2015-05-28 17:02 敬往事一杯酒 阅读(200) 评论(0) 推荐(0)