The SQL standard specifies that single-quotes in strings are escaped by putting two single quotes in a row. SQL works like the Pascal programming language in the regard. SQLite follows this standard. Example:
INSERT INTO xyz VALUES('5 O''clock');
Ref : SQLite FAQ
More Related Contents:
- How to add multiple edit text and spinner data into SQLite database?
- Hindi font not displying correctly in android [closed]
- Share SQLite database between 2 android apps?
- Location of sqlite database on the device
- Android: upgrading DB version and adding new table
- Android P – ‘SQLite: No Such Table Error’ after copying database from assets
- Deleting Row in SQLite in Android
- Best place to close database connection
- Store Android SQLite
- Permission Denial: this requires android.permission.INTERACT_ACROSS_USERS_FULL
- How to split comma-separated value in SQLite?
- How to write character & in android strings.xml
- Why do I get a “sqlite3: not found” error on a rooted Nexus One when I try to open a database using the adb shell?
- Cursor adapter and sqlite example [closed]
- Android sqlite how to check if a record exists
- Android Persistence room: “Cannot figure out how to read this field from a cursor”
- How to retrieve data from sqlite database in android and display it in TextView
- SQLite Exception no such column when trying to select
- android java.lang.IllegalStateException: Couldn’t read row 0, col 0 from CursorWindow
- Android: column ‘_id’ does not exist
- How can I insert image in a sqlite database
- Android Cursor with ORMLite to use in CursorAdapter
- Is it possible to apply primary key on the text fields in android database
- What is The use of moveToFirst () in SQLite Cursors
- How to store sqlite database directly on sdcard
- sqlite example program in android [closed]
- How to check database on not rooted android device
- How to store JSON object in SQLite database
- Android SQLiteOpenHelper cannot open database file
- Android table creation Failure (near “autoincrement”: syntax error)?