How to insert double and float values to sqlite?

后端 未结 5 816
情书的邮戳
情书的邮戳 2021-02-02 05:12

Following is my db creation code.

@Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(\"CREATE TABLE \" + TABLE_NAME + \" (\" + 
                  


        
5条回答
  •  一个人的身影
    2021-02-02 05:51

    actually I think your code is just fine.. you can save those values as strings (TEXT) just like you did.. (if you want to)

    and you probably get the error for the System.currentTimeMillis() that might be too big for INTEGER

提交回复
热议问题