sqlite3 insert and read BLOB data in database

后端 未结 5 551
刺人心
刺人心 2020-12-03 09:05

I need to read and write BLOB data to a database. Here is my structure table

    #define CREATE_TABLE_USERS_SQL \"CREATE TABLE IF NOT EXISTS %@ ( \\
UserID I         


        
5条回答
  •  悲&欢浪女
    2020-12-03 09:57

    Apart from choosing your client or programming interface, usage does not differ from any other string field.


    [Update] I haven't had the luck to develop for the iPhone yet, but I believe it's the same as any other SELECT or INSERT query. Make sure to encode the BLOB and enclose it with single apostrophes (') like strings.

提交回复
热议问题