How to insert double and float values to sqlite?

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

    SQL Supports following types of affinities:

    • TEXT
    • NUMERIC
    • INTEGER
    • REAL
    • BLOB

    If the declared type for a column contains any of these "REAL", "FLOAT", or "DOUBLE" then the column has 'REAL' affinity.

提交回复
热议问题