I want to execute a parameterized in qt using value binding.
This is the code:
QString name = "Foo";
query->prepare("SELECT Name, Surname FROM employee WHERE Surname LIKE %:surname%");
query->bindValue(":surname", name);
The problem is with the % character: it generates an error while executing the query, however i don't known how to use it with qt.