How to insert double and float values to sqlite?

后端 未结 5 801
情书的邮戳
情书的邮戳 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:49

    I think you should give the data types of the column as NUMERIC or DOUBLE or FLOAT or REAL

    Read http://sqlite.org/datatype3.html to more info.

提交回复
热议问题