Insert null in Sqlite table

后端 未结 4 602
逝去的感伤
逝去的感伤 2020-12-29 20:51

I am trying to figure how to insert a null value into an SQLite table in Android.

This is the table:

\"create table my table (_id integer primary key         


        
4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-29 21:03

    I think you can skip it but you can also put null, just make sure that when you first create the Database, you don't declare the column as "NOT NULL".

提交回复
热议问题