How do we insert strings that have commas (,) in them into SQLite database using Android ?
If there are no commas within the values to be inserted, then insertion happens fine. Say for example see the Android code:-
db.execSQL("insert into Student ( id, name, mark ) values (1, 'Geevarghese', 100)");
Inserting into the db works well.
If I modify my question to add the address to the database, like the following,
db.execSQL("insert into Student ( id, name, mark, address ) values (1, 'Geevarghese', 100, 'No.20, Cochin, Kerala')");
This query doesn't insert data into the database
How to properly insert data that includes comma into SQLite db from Android ?