K
K
Kamikaze10242017-06-16 15:59:33
C++ / C#
Kamikaze1024, 2017-06-16 15:59:33

How to escape quotes in sqlite3 query in c++ language?

How to escape quotes and other characters in a sqlite3 query in c++ in a query like this:
string query = "SELECT " + value + " FROM TABLE;";
?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nirvimel, 2017-06-16
@Kamikaze1024

The best thing to do is NOT to do it.
And to transfer parameters through bound variables .
Here , in Russian, the general theory of the issue without relatively SQLite.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question