您好,这是我的C#查询插入内容,但出现此错误 错误代码:1136 列数与第1行的值数不匹配 我已经指定了要向其中插入数据的différents列,但仍然给出相同的错误 请帮助我
{{asset('external/css/bootstrap.min.css')
我要在fgm_pastor中插入魔杖
这是我的表结构
创建表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
VARCHAR(180),
matriculePastor
VARCHAR(180),
pastorName
VARCHAR(180),
pastorSurname
日期,
pastorBirthdayDate
VARCHAR(180),
birthdayPlace
VARCHAR(180),
pastorFatherName
VARCHAR(180),
pastorMotherName
字符(3),
pastorSexe
VARCHAR(180),
pastorPhone
VARCHAR(180),
pastorEmail
日期,
dateConversion
VARCHAR(180),
workBeforeBibleSchool
VARCHAR(180),
rankProbation
VARCHAR(300),
areaOfCalling
整数(11),
nberYearArea
整数(11),
nbreYearDistrict
VARCHAR(180),
martialSituation
VARCHAR(180),
nationality
VARCHAR(300),
pastorAdresse
TEXT,
photoProfil
TINYINT(1),
isActif
TEXT,
raisonIndispoMissionnaire
整数(1),
isDelete
INT(11)
);