I ma trying to insert some data into the database. The data contains single quotes. I tried to escape them with back slash like “Scr\’anton” while inserting the data:
INSERT INTO employee VALUES(4,'Jim','Halpert','Assistant Regional Manager','Manage',2,'Scr\'anton','570-222-2121','570-999-1212','jim@dundermifflin.com','halpert.jpg')
I tired to use DatabaseUtils.sqlEscapeString() with no effect at all. What is the best way to escape characters?
use double single quotes ‘Scr”anton’