0

I want to add a String data to my table of SQLite database which contains "...O'Clock..." in it. At the time of execution I am getting an syntax error near "Clock" due to the ' in my query string. How to pass ' into that query string?

Thanks in advance.

4

1 に答える 1

2

You need to pass two ' for a single insertion of ' into your table.

Which means your string should be "...O''Clock..."

This should work.

于 2013-10-19T04:38:23.197 に答える