List:General Discussion« Previous MessageNext Message »
From:ZhangFangXue Date:February 19 2013 8:00am
Subject:PreparedStatement problem
View as plain text  
Hi, when I use PreparedStatement in c++ connector, I find some unexcepted error,

prep_stmt = con -> prepareStatement ("INSERT INTO City (CityName) VALUES (?)");
prep_stmt -> setInt (1, 23); //this statement didn't act normally!!!
prep_stmt -> setString (1, "23"); // this one is ok,
//can anyone tell why, or do I make any mistake, or what should be paid attention to?
//thx.
Best Regards


Thread
PreparedStatement problemZhangFangXue19 Feb
  • Re: PreparedStatement problemJohan De Meersman19 Feb
    • 答复: PreparedStatement problemZhangFangXue19 Feb
      • Re: 答复: PreparedStatement problemJohan De Meersman19 Feb
        • 答复: 答复: PreparedStatement problemZhangFangXue19 Feb