While trying to insert something like:
"Hello\nWorld"
SQLite throws error something like:
Message: unrecognized token: "'Hello";" (also few other errors)
Even though I convert above string to "Hello''\nWorld"
or "Hello\"\n\"World"
, these escape characters sequences don't work in this case.
Currently using C++ language, I am inserting this column like any other simple string columns. I tried above escape sequence (even though I read in internet that, they don't work with \n
).
How to insert new line and other such special characters in SQLite DB?