Answer the question
In order to leave comments, you need to log in
What does passing a parameter to where look like in C++/MySQL?
Hello!
I want to write a query to the database through the for construct.
Something like this:
for (int i = 0; i < 10; i+)
{
Object.ExecuteQuery("select ip, prefix from server where id = i");
}
Of course, this construction will not work. How to correctly pass the value of i to where?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question