I just want to know, if a value, like an int for example, is actually converted into a string before being sent as part of the command.
pstmt = con->prepareStatement("INSERT INTO test(id) VALUES (?)");
Usually, the ? is replaced with:
pstmt->setInt(1,155);
What I'm curious about is: could I simply make the command:
pstmt = con->prepareStatement("INSERT INTO test(id) VALUES (155)");
And execute it? Would it be the same as setInt? (basically that would mean that the int value is converted to a string before being set as part of the command)