How to insert null in SQLite using String.format() like this?
String sql = "INSERT INTO tblCustomers (idCustomer , customerName )" +
" VALUES (%d , '%s')";
db.execSQL(String.format(Locale.US,
sql,
1, "Ali"));
db.execSQL(String.format(Locale.US,
sql,
1, null));// this time it inserts 'null' value as string in database, not (NULL)