首页 > 移动平台 > 详细

数据库--iOS

时间:2015-12-21 23:21:30      阅读:301      评论:0      收藏:0      [点我收藏+]

1.创建表

@"create table if not exists Person(id integer primary key autoincrement,name text,gender text,age integer,photo blob)"

2.插入

insert into Person(name,gender,age,photo)values(?,?,?,?)"

3.查找

select * from Person

4.更新

@"update Person set gender = ? where id = ?"

5.删除

delete from Person where id = ?"

数据库--iOS

原文:http://www.cnblogs.com/miaomiaocat/p/5064961.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!