【发布时间】:2012-03-29 00:40:00
【问题描述】:
这就是我使用 sqlite 创建数据库的方式
Pro:~ dd$ sqlite3 db.db
SQLite version 3.7.7 2011-06-25 16:35:41
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> create table cus(id integer primary key, firstname varchar(30));
sqlite> inser into cus(firstname)values('f');
Error: near "inser": syntax error
sqlite> insert into cus(firstname)values('f');
sqlite> select * from cus;
1|f
sqlite>
现在我需要插入图像,我读到我们可以将图像保存为BLOB 文件,有人可以告诉我如何将图像保存到数据库文件并检索图像并显示在imageview 中吗?教程或示例代码
【问题讨论】:
标签: iphone objective-c sqlite