The second parameter of the SQLiteDatabase insertion method is "nullColumnHack". What does it mean. What value should be passed to this parameter.
"nullColumnHack"
thank
Brief explanation ..
nullColumnHack
not necessary; may be zero. SQL does not allow you to insert a completely empty row without naming at least one column name. If your provided values are empty, column names are not known and an empty row cannot be inserted. If the value is not set to null, the nullColumnHack parameter specifies the name of the null column name to explicitly insert NULL in case your values are empty.
, foo, NULL .
NULL
SQL SQL:
SQL
`INSERT INTO `foo;
SQLite. :
SQLite
INSERT INTO foo (somecol) VALUES (NULL);
, , ContentValues insert(), Android SQLite - , NULL. , : , Magic 8-Ball (TM), , ..
ContentValues
insert()
ContentValues insert(), ...: -)
commonsware.
nullColumnHack . null, nullColumnHack , NULL , .