开发者

Sqlite Data base in iPhone application?

开发者 https://www.devze.com 2023-03-14 04:19 出处:网络
I am trying to read my SQLite database with in my iPhone application I am able to read some fields but how to read Text fields data type. I wrote this line of code...

I am trying to read my SQLite database with in my iPhone application I am able to read some fields but how to read Text fields data type. I wrote this line of code...

NSString *aDescription = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 2)];  

B开发者_如何学JAVAut it gives me an error. Can anyone help me on this, or help me out with a data type compatible with Objective C?


Always consider checking that sqlite3_column_text does not return NULL before using it.

There is a big probability that this is the cause of your error/exception.

0

精彩评论

暂无评论...
验证码 换一张
取 消