I was able to insert and retrieve integer, text datatype in my sqlite3 database. Can you please guide me how to do the same for a float datatype for my iPhone app.
Asked
Active
Viewed 2,689 times
1
-
I would suggest you to either quote your answer here or remove the question to prevent unanswered questions on SO. – Till Nov 22 '11 at 21:32
-
sqlite3_bind_double(stmt, 7, [[person valueForKey:@"salary"] floatValue]); – user1048396 Nov 22 '11 at 21:40
-
I am adding it in comment as I am not able to answer my own question – user1048396 Nov 22 '11 at 21:41
1 Answers
1
sqlite3_bind_double(stmt, 7, [[person valueForKey:@"salary"] floatValue]);