Hello, members of the forum.
The problem with the UPDATE request was brought to me by you. It consists in the following. Program at request execution
String sqlReqest = "UPDATE "+strTableName+" SET Question='"+strQestoinText+"',FirstAnswer='"+strFirstAnswer+"',SecondAnswer='"+strSecondAnswer+"',ThirdAnswer='"+strThirdAnswer+"',FourAnswer='"+strFourthAnswer+"',TrueResolt='0110' WHERE Question='"+strRedactRecoedQestion+"'"; System.out.println(sqlReqest);
returns me an error:
java.sql.SQLException: [Microsoft][Драйвер ODBC dBase] Слишком мало параметров. Требуется 3.
The request in the console looks like this:
UPDATE TST7.DBF SET Question='hhh234g4t56gferthgdfd',FirstAnswer='ghfbvdsfgb',SecondAnswer='hbgvfdsfgbhnvf',ThirdAnswer='sdf ghjngbvfc',FourAnswer='dgfbhnjmkujhygtf',TrueResolt='0110' WHERE Question='234g4t56gferthgdfd'
Another interesting point is that this very query of the form
"UPDATE" + strTableName + "SET Question = '" + strQestoinText + "' where Question = '" + strOldQuestion + "'
it is executed without problems, but only I change the number of fields in WHERE or after it, the same error is obtained ((
Tell me, please, where I screwed up, where could be the error?