1

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.

user1048396
  • 123
  • 1
  • 4
  • 10

1 Answers1

1
sqlite3_bind_double(stmt, 7, [[person valueForKey:@"salary"] floatValue]);  

http://www.sqlite.org/c3ref/bind_blob.html

Difference between float and double

Community
  • 1
  • 1
hol
  • 8,255
  • 5
  • 33
  • 59