привет, вот мой c # запрос на вставку, но у меня есть эта ошибка
Код ошибки: 1136
Количество столбцов не соответствует значению в строке 1
я уже указал столбец différents, в который я хотел вставить данные, но он все еще выдал ту же ошибку
пожалуйста, помогите мне
req = "INSERT INTO fgm_pastor" +
"(matriculePastor, " +
"pastorName," +
" pastorSurname, " +
"pastorBirthdayDate ," +
"birthdayPlace," +
" pastorFathername," +
" pastorMothername," +
" pastorSexe," +
" pastorPhone," +
" pastorEmail," +
" dateConversion," +
" workBeforeBibleSchool," +
" rankProbation," +
" areaOfCalling," +
" nberYearArea," +
" nbreYearDistrict" +
", martialSituation," +
" nationality," +
" pastorAdresse," +
" photoProfil," +
" raisonIndispoMissionnaire," +
" id) VALUES('"
+ this.matricule +
"','" + this.name +
"','" + this.surname +
"','" + this.dateOfBirth +
"','" + this.pastorPlaceOfBirth +
"','" + this.pastorFotherName +
"','" + this.pastorMotherName +
"','" + this.gender +
"','" + this.tels +
"','" + this.email +
"','" + this.conversionDate +
"','" + this.professionBeforeBibleschool +
"','" + this.rankProbation +
"','" + this.areaOfCall +
"'," + this.numberYearInArea +
"," + this.numberYearDistrict +
",'" + this.martialStatus +
"','" + this.country +
"','" + this.pastorAdresse +
"','" + this.picture +
"','" + this.raisonIndisp +
"'," + this.id + ")";
палочка для вставки в fgm_pastor
вот моя структура таблицы
CREATE TABLE fgm_pastor
(
matriculePastor
VARCHAR (180),
pastorName
VARCHAR (180),
pastorSurname
VARCHAR (180),
pastorBirthdayDate
ДАТА,
birthdayPlace
VARCHAR (180),
pastorFatherName
VARCHAR (180),
pastorMotherName
VARCHAR (180),
pastorSexe
CHAR (3),
pastorPhone
VARCHAR (180),
pastorEmail
VARCHAR (180),
dateConversion
ДАТА,
workBeforeBibleSchool
VARCHAR (180),
rankProbation
VARCHAR (180),
areaOfCalling
VARCHAR (300),
nberYearArea
INT (11),
nbreYearDistrict
INT (11),
martialSituation
VARCHAR (180),
nationality
VARCHAR (180),
pastorAdresse
VARCHAR (300),
photoProfil
ТЕКСТ,
isActif
TINYINT (1),
raisonIndispoMissionnaire
ТЕКСТ,
isDelete
INT (1),
id
INT (11)
);