摘要:1.打开数据库 int sqlite3_open( const char *filename, // 数据库的文件路径 sqlite3 **ppDb // 数据库实例 ); 2.执行任何SQL语句 int sqlite3_exec( sqlite3*, // 一个打开的数据库实例 ...
阅读全文
摘要:0. git —version 《查看git版本》 1. git clone ——git地址—— 2. ls 3. cd LYHSecondDocuments02/ 4. ls 5. git status -s 6. git add . //点表示添加所有 (如果修改了,需要再次添加) 7. git status -s //所有文件前缀A ,表示文件添加成功 6. git add...
阅读全文
摘要:// // EditViewController.m // 03_FetchedResultsController // // Created by JayWon on 15/10/13. // Copyright (c) 2015年 JayWon. All rights reserved. // #import "EditViewController.h" #import "Stud...
阅读全文
摘要:// // DataBaseManager.m // 02 SQLite in iOS // // Created by ZhuJiaCong on 16/5/3. // Copyright © 2016年 ZhuJiaCong. All rights reserved. // #import "DataBaseManager.h" //数据库相关头文件 #import #defi...
阅读全文
摘要:1.打开数据库 int sqlite3_open( const char *filename, // 数据库的文件路径 sqlite3 **ppDb // 数据库实例 ); 2.执行任何SQL语句 int sqlite3_exec( sqlite3*, // 一个打开的数据库实例 ...
阅读全文
摘要:// // ViewController.m // 01-CoreData基本使用 // // Created by mac on 16/5/4. // Copyright © 2016年 mac. All rights reserved. // #import "ViewController.h" #import #import "User.h" @interface ViewC...
阅读全文
摘要:// // ViewController.m // 02-CoreData-系统自带CoreData // // Created by mac on 16/5/4. // Copyright © 2016年 mac. All rights reserved. // #import "ViewController.h" #import "Student.h" #import "LYHCl...
阅读全文
摘要:// // ViewController.m // 01-CoreData基本使用 // // Created by mac on 16/5/4. // Copyright © 2016年 mac. All rights reserved. // #import "ViewController.h" #import #import "User.h" @interface ViewC...
阅读全文
摘要:DML、DDL、DCL区别 . 总体解释: DML(data manipulation language): 它们是SELECT、UPDATE、INSERT、DELETE,就象它的名字一样,这4条命令是用来对数据库里的数据进行操作的语言 DDL(data definition language): DDL比DML要多,主要的命令有CREATE、ALTER、DROP等,DDL主要是用...
阅读全文
摘要:1 // 2 // ViewController.m 3 // 01-属性列表使用 4 // 5 // Created by mac on 01/1/3. 6 // Copyright © 2001年 mac. All rights reserved. 7 // 8 9 /** 10 11 表:一张完整的数据表,用于记录数据 12 字段:数据表中的元素或者...
阅读全文
摘要:SQL语句总结 1.SQL 语句不区分大小写,关键字大写处理 2.SQL 语句中的命名不能喝关键字冲突 3.每条语句都以;结束。 4. DDL:数据定义型语言 1)创建表:CREATE TABLE studentTable (name text,identify text,age integer); 2)删除表:DROP TABLE movieTable; 5.DML:数据操作型语言...
阅读全文
摘要:1 // 2 // MyNetworkService.m 3 // 04-天气预报 4 // 5 6 #import "MyNetworkService.h" 7 8 #define BASEURL @"http://www.weather.com.cn" 9 10 @implementation MyNetworkService 11 12 + (void)req...
阅读全文
摘要:1 // 2 // ViewController.m 3 // 05-backgroudDownload 4 // 5 6 #import "ViewController.h" 7 8 @interface ViewController () 9 10 @end 11 12 @implementation ViewController 13 14 - (void...
阅读全文
摘要:1 // 2 // ViewController.m 3 // 04-UploadTask 4 // 5 #import "ViewController.h" 6 7 #define Boundary @"AaB03x" 8 9 @interface ViewController () 10 11 @end 12 13 @implement...
阅读全文
摘要:1 // 2 // ViewController.m 3 // 03-DownloadTask 4 // 5 //如果退出程序后仍能实现断点续传,思路: 6 //1.保存resumeData到本地沙盒路径。 7 //2.分析resumeData是如何记录下载文件信息的。才能设定下次进入时进度条的进度。 8 9 #import "ViewControlle...
阅读全文
摘要:1 // 2 // ViewController.m 3 // 02-NSURLSessionConfiguration 4 // 5 #import "ViewController.h" 6 7 @interface ViewController () 8 9 @end 10 11 @implementation ViewController ...
阅读全文
摘要:/* 网络请求的流程: 1.构造NSURL连接地址 2.构造NSURLRequest请求对象,包含请求头和请求体信息。 3.构造NSURLSessionConfiguration,可选 4.构造NSURLSession会话对象 5.创建请求任务 6.发送网络请求 */
阅读全文
摘要:1 // 2 // ViewController.m 3 // 02-NSURLSessionConfiguration 4 // 5 // Created by kangkathy on 15/11/25. 6 // Copyright © 2015年 kangkathy. All rights reserved. 7 // 8 9 #import...
阅读全文