My code is:
Code: Select all
//*** Incorrect syntax, compile error ***
int intAge = 43;
wxString strSQL = "INSERT INTO user (Name, Age, Country, Position, Phone) VALUES ('" + strName + "','" + intAge + "','" + strCntry + "','" + strPosit + "','" + strPhone + "');";
//***** Works perfectly with an actual value ******
wxString strSQL = "INSERT INTO user (Name, Age, Country, Position, Phone) VALUES ('" + strName + "', 43,'" + strCntry + "','" + strPosit + "','" + strPhone + "');";